]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h1: skip raw data after a rejected CONNECT again
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 3 Dec 2026 08:34:46 +0000 (09:34 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 3 Dec 2026 12:41:06 +0000 (13:41 +0100)
commitb7ee75bfb8fa66af7928a93edbbba33f84f722aa
tree12b4949f47c0f7ed5d9c09ea6130c56b33f96f1a
parent671c393f54ae35be0ae58ed708376c79a73bb156
BUG/MINOR: mux-h1: skip raw data after a rejected CONNECT again

Since the commit e99253b70 ("BUG/MINOR: mux-h1: properly handle NOOP
blocks and track EOM emission"), RAW_DATA blocks found in DONE state on
the backend side are only skipped if the end of the request was sent,
the H1S_F_EOM_SENT flag being set. But this flag was never set for a
CONNECT request. In h1_make_eoh(), the CONNECT case is handled before the
EOM flag is tested, even if the EOH block carries the EOM flag, which is
always the case for a CONNECT request received from an H1 or an H2
client. So when a CONNECT was rejected by the server, early tunnel data
still pending in the request buffer were rejected with a processing
error instead of being silently skipped. It was a regression of the
commit 04456142e ("BUG/MINOR: mux-h1: Discard pending raw data after a
tunnel rejection").

Now, the H1S_F_EOM_SENT flag is set for a CONNECT request when the EOH
block carries the EOM flag.

This patch must be backported to 3.5.
src/mux_h1.c