]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h3: close connection on response start-line alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Nov 2026 14:31:14 +0000 (15:31 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Nov 2026 16:31:36 +0000 (17:31 +0100)
commitcf19fffaed0c950c64904fe8e045a0df5a8db53d
treeb00dd482719307a014d84070d69665a21964396e
parent2aed0c9bea4a61c0c58a1fc89f4fa98647fe0528
BUG/MINOR: h3: close connection on response start-line alloc failure

On QUIC backend side, correct the error handling when HTX start-line
cannot be allocated during HTTP/3 response parsing.

Previously, a stream error would be reported with H3_MESSAGE_ERROR. Now,
h3_resp_headers_to_htx() only returns a default negative value without
any explicit error code. This results in a connection level error using
H3_INTERNAL_ERROR, generated at the end of h3_rcv_buf().

This pattern is already used on request parsing. It is necessary to
close the connection asap on memory exhaustion while differentiating
between a peer protocol violation and an haproxy internal error.

This must be backported up to 3.3.
src/h3.c