]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h3: reject interim responses ending the stream
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 19 Nov 2026 15:45:45 +0000 (16:45 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 19 Nov 2026 15:58:22 +0000 (16:58 +0100)
commit9c3a95c2c6485e46aeafd9a6a9975d5d00a14c1a
treea8f4ecc7d8ac0879b6be5a2486c27fa14abc70e2
parenta40022de1ef09495d010facfc4ab7fc4774e0978
BUG/MINOR: h3: reject interim responses ending the stream

On the backend side, a HEADERS frame carrying a 1xx status with the FIN
bit is converted into an interim response ending the message with the
EOM flag, which the H1 and H2 muxes never do. The stream forwards it as
an interim response and the client then gets a 502 once the end of the
stream is reported, while such a response is malformed since a final
response must follow an interim one.

Let's reject it as a malformed response with H3_ERR_MESSAGE_ERROR, as
the H2 mux does with an END_STREAM flag on a 1xx response, so the client
only gets a 502.

This was introduced with the backend side support by commit f79effa30
("MINOR: h3: convert HTTP/3 response into HTX for backend side support")
in 3.3-dev2, so it must be backported to 3.3.
src/h3.c