]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: xprt_qmux: apply the configured bidi streams limit on FE master
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 19 Nov 2026 09:53:50 +0000 (10:53 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 19 Nov 2026 17:36:52 +0000 (18:36 +0100)
commitaad6aebf748b472f9b52a30ebdf644ac7c79e1d5
tree46406db55819501b4c6ecff6da35525564e194c2
parent5515125880b981adfc6934fc93b38c66bec9e5cc
BUG/MEDIUM: xprt_qmux: apply the configured bidi streams limit on FE

QMux frontends always advertise 100 bidirectional streams, ignoring
"tune.quic.fe.stream.max-concurrent" and "tune.quic.fe.stream.max-total"
which QUIC applies in quic_transport_params_init(). The MUX however
relies on the client never being allowed to open more than
stream.max-total streams: with a value below 100, 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 on a "proto qmux" frontend.

Let's compute the frontend limit as QUIC does. The h3_clr QMux reg-test
now sets stream.max-total to cover this.

This was introduced in 3.4 by commit 497cabd9e ("MEDIUM: quic: implement
fe.stream.max-total"), which did not apply to the QMux transport
parameters. It must be backported to 3.4.
reg-tests/qmux/h3_clr.vtc
src/xprt_qmux.c