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.