]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-messaging: fix h1_big_chunk_size_line race on the error report
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 3 Dec 2026 13:21:42 +0000 (14:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 3 Dec 2026 13:24:24 +0000 (14:24 +0100)
commitb026ab84f23824e6d4e587d920d69fc862d6279f
treeb2cefa2d0b0caf24ad964ad58f19f8c1412621d3
parent126ef1b8677ab2d956138e6c29640180397dfa28
REGTESTS: http-messaging: fix h1_big_chunk_size_line race on the error report

The request is larger than the buffer, so it is always received in at
least two reads and the chunk-size line error is only detected once the
headers were consumed. Depending on whether the stream analyzed the
headers before that, the error is reported by the H1 mux ("<BADREQ>"
logged) or by the stream, after the request was forwarded to the
server (request line logged, PH-- or even PL-- with a 200). The latter
was observed on macOS.

Let's set "option http-buffer-request" to never forward the request
before the error, and accept both the "<BADREQ>" and the request line
in the log. A 400 with PR-- termination flags is now always expected.

This should be backported with the commit 6e495dbb2a48 ("BUG/MAJOR: h1-htx:
report an error on a too long chunk-size line").
reg-tests/http-messaging/h1_big_chunk_size_line.vtc