]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux_quic: do not reset timeout after shut
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 28 Oct 2026 09:38:29 +0000 (10:38 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 28 Oct 2026 10:06:00 +0000 (11:06 +0100)
commitc0b3d56eff7a87dee22e966cfe67f35204d71e36
tree95488f187a16fd6eaa3246499cf1b7f1cdca64c3
parente682b1e9c276bb60d7ca1790348f401ccfc076c1
BUG/MEDIUM: mux_quic: do not reset timeout after shut

When a connection is shutting down, MUX QUIC uses shut-timeout if
defined as a final timeout value. However, the timer was reset every
time qcc_refresh_timeout() was called. In effect, a connection could
stay indefinitely due to repeated activity from the peer.

Fix this by ensuring shut-timeout is only set once in
qcc_refresh_timeout(). The value is not updated if QCC task timeout is
already set.

Note that shut-timeout could be completely ignored if set to a greater
value than the default client/server timeout. However, as the docs
imply, this is not expected, as it is used to ensure a closing
connection will quickly end.

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