]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: xprt_qstrm: prevent crash if conn release on MUX wake
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Apr 2026 15:32:44 +0000 (17:32 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 24 Apr 2026 07:33:04 +0000 (09:33 +0200)
commitc08dcd3519f75fd65a310cc55f97a3fc1b9c76c9
tree83082b2859f6c33ba7270cf50685dd6baea04502
parentbb016b66c4f12facaddce1be9aae14bc08776e3f
BUG/MINOR: xprt_qstrm: prevent crash if conn release on MUX wake

When QMux XPRT has successfully been able to process to transport
parameters exchange, the MUX is initialized and immediately woken up to
start transfers. However, if the connection is in an unusable state, the
latter operation will instead release the connection and all of its
network stack.

A crash would occur in case of release when finalizing the XPRT tasklet
completion. To fix this, first free every XPRT resources. MUX wake is
now conducted in a safe way as the last operation before the tasklet is
completely released.

No need to backport.
src/xprt_qstrm.c