]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-h2: Make sure we remove H2_SF_NOTIFIED on subscribe
authorOlivier Houchard <cognet@ci0.org>
Fri, 28 Aug 2026 10:34:53 +0000 (12:34 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 3 Sep 2026 13:20:46 +0000 (15:20 +0200)
commit55b6e5496edebabacafe9ae4456c31bc210610d0
tree570f7c38892bbbfca50e74f8c9db8f5b42209ea0
parent4721a96f161b83cbb5015d15821e84e16fe21151
BUG/MEDIUM: mux-h2: Make sure we remove H2_SF_NOTIFIED on subscribe

The mux h2 remembers that he woke a stream for writing, and as long as
the H2_SF_NOTIFIED flag is set, won't attempt to do so again. However,
if for any reason the stream does not try to send data, and just
subscribes, then it will never be woken up. So remove the flag on
subscribe.
This can happen for example, with tcpcheck using the proxy protocol, if
for any reason the proxy protocol handshake is not done yet, as tcpcheck
will just subscribe if it sees the CO_FL_WAIT_XPRT flag.

This should be backported up to 2.8.
src/mux_h2.c