]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: quic: never advertise more streams than configured
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 18 Nov 2026 16:52:44 +0000 (17:52 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 18 Nov 2026 16:41:42 +0000 (17:41 +0100)
commitb8b7c5540225e71f089e27591672f050c852291e
treec47bf892474aa74470bfcc1efafded144a6d7a84
parente09666921589c4bf0ef63c9fcfcb95af79637974
BUG/MEDIUM: quic: never advertise more streams than configured

With "tune.streams-elasticity", the initial max-streams-bidi transport
parameter is set to conn_calc_max_streams() of the configured limit,
i.e. the lowest of "tune.quic.fe.stream.max-concurrent" and
"tune.quic.fe.stream.max-total". But this function may return more than
the value it is passed, as it also considers the share of the extra
streams budget left for each remaining connection, which does not depend
on it: with "tune.streams-elasticity 1000", it returns 10 at low load.

When "tune.quic.fe.stream.max-total" is lower than this, releasing the
first remote stream hits BUG_ON(qcc->lfctl.ms_bidi > max) in
qcc_release_remote_stream(), so the process dies on the first completed
request.

Let's not advertise more than the configured limit. The stream_max_total
reg-test now enables stream elasticity to cover this.

This was introduced by commit d21ec4c70 ("MINOR: quic: use stream
elasticity value for initial advertisement") in 3.4-dev13 and must be
backported to 3.4.
reg-tests/quic/stream_max_total.vtc
src/quic_tp.c