]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-quic: cap elastic MAX_STREAMS to stream.max-total
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 18 Nov 2026 16:41:03 +0000 (17:41 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 18 Nov 2026 16:41:42 +0000 (17:41 +0100)
commit3c85b929c881ca65de08a20003034161336dbe48
tree1420cb20919684b9c999e69452864d2a4548081c
parentb8b7c5540225e71f089e27591672f050c852291e
BUG/MEDIUM: mux-quic: cap elastic MAX_STREAMS to stream.max-total

With "tune.streams-elasticity", qcc_release_remote_stream() grants as
MAX_STREAMS increment the difference between the elastic limit and the
streams still usable by the peer. Unlike the static path, nothing caps
the new limit to "tune.quic.fe.stream.max-total". If the window was
reduced under load and the load then drops, the increment computed close
to the end of the connection may exceed the remaining streams, and the
next released stream hits BUG_ON(qcc->lfctl.ms_bidi > max).

Let's cap the increment to the remaining streams. It is still at least 1
since ms_bidi is below max there.

This was introduced by commit e139dd90e ("MAJOR: mux_quic: support
stream elasticity during connection lifetime") in 3.4-dev13 and must be
backported to 3.4.
src/mux_quic.c