]> git.kaiwu.me - haproxy.git/commit
Revert "BUG/MEDIUM: mux-h2: make sure to always report pending errors to the stream"
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Mar 2026 07:48:49 +0000 (08:48 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Mar 2026 13:02:43 +0000 (14:02 +0100)
commitd257dd4563d46ffd8d7ca831611c68f488329a66
treedc76f071f15b70e5b919f4688e4e4e49fc01e1f4
parent39121ceca6945b62fdea24de1cb5102c6631417b
Revert "BUG/MEDIUM: mux-h2: make sure to always report pending errors to the stream"

This reverts commit 44932b6c417e472d25039ec3d7b8bf14e07629bc.

The patch above was only necessary to handle partial headers or trailers
parsing. There was nothing to prevent the H2 multiplexer to start to add
headers or trailers in an HTX message and to stop the processing on error,
leaving the HTX message with no EOH/EOT block.

From the HTX API point of view, it is unexepected. And this was fixed thanks
to the commit ba7dc46a9 ("BUG/MINOR: h2/h3: Never insert partial
headers/trailers in an HTX message").

So this patch can be reverted. It is important to not report a parsign error
too early, when there are still data to transfer to the upper layer.

This patch must be backport where 44932b6c4 was backported but only after
backporting ba7dc46a9 first.
src/mux_h2.c