]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux_quic: do not crash on SE_SHR_DRAIN shut
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 9 Oct 2026 07:51:46 +0000 (09:51 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 16 Oct 2026 08:19:23 +0000 (10:19 +0200)
commit4939dc475c5681f190200e006338768903b08c49
tree3ee570339042c830ab257017c52a058622056709
parented2bea8c74b3d9575d02e45ec875d29be58ed6ab
BUG/MINOR: mux_quic: do not crash on SE_SHR_DRAIN shut

qcm_strm_shut() callback was extended to ensure stream is properly
closed. Only SE_SHR_DRAIN mode was left unsupported as it was considered
not possible to encounter it. As such a BUG_ON() was added in shut
callback.

Since QUIC backend support, SE_SHR_DRAIN may be used on shut for checks.
As such, it is required to properly handle it. This patch removes the
BUG_ON() and treat SE_SHR_DRAIN similarly to SE_SHR_RESET.

This must be backported up to 3.3.
src/mux_quic.c