]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: do not access conn after idle list insert
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 20 Aug 2025 15:16:28 +0000 (17:16 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Aug 2025 12:52:29 +0000 (14:52 +0200)
commitb3ce4644354326616eddc3b701aaba5c7ded36d7
tree731863f656bbf97be625e9225e4568b18047dce0
parent0be225f341485a46d17bc17ccc7906613bfbc3d0
BUG/MINOR: mux-quic: do not access conn after idle list insert

Once a connection is inserted into the server idle/safe tree during
stream detach, it is not accessed anymore by the muxes without
idle_conns_lock protection. This is because the connection could have
been already stolen by a takeover operation.

Adjust QUIC MUX detach implementation to follow the same pattern. Note
that, no bug can occur due to takeover as QUIC does not implement it.
However, prior to this patch, there may still exist race-conditions with
idle connection purging.

No backport needed.
src/mux_quic.c