]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: Don't release H1C on timeout if there is a SC attached
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Nov 2022 16:06:13 +0000 (17:06 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Nov 2022 16:49:10 +0000 (17:49 +0100)
commitf75cc5468a6d4febf2b2263e3e193eeb179a5867
tree589e632d16c6e8634a41cc45ef2b1f0dcefb304e
parent84cdbe478a82afdcaf4f049e8ed431ca349c6ba2
BUG/MEDIUM: mux-h1: Don't release H1C on timeout if there is a SC attached

When the H1 task timed out, we must be careful to not release the H1
conneciton if there is still a H1 stream with a stream-connector
attached. In this case, we must wait. There are some tests to prevent it
happens. But the last one only tests the UPGRADING state while there is also
the CLOSING state with a SC attached. But, in the end, it is safer to test
if there is a H1 stream with a SC attached.

This patch should partially fix the issue #1943. However, it only prevent
the segfault. There is another bug under the hood. BTW, this one is
2.7-specific. Not backport is needed.
src/mux_h1.c