From: Amaury Denoyelle Date: Wed, 6 May 2026 07:08:35 +0000 (+0200) Subject: MINOR: mux_quic: simplify MUX_CTL_GET_NBSTRM X-Git-Tag: v3.4-dev11~27 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=1614204d2892fab7b32f1a5bf5db4c4a02d53056;p=haproxy.git MINOR: mux_quic: simplify MUX_CTL_GET_NBSTRM Since the previous patch, accounting of HTTP requests in progress on MUX QUIC as been simplified. Now QCC identifies them until the QCS free. Thus, MUX_CTL_GET_NBSTRM can be simplified. Instead of relying on plus the , simply return value which should be slighly identical. --- diff --git a/src/mux_quic.c b/src/mux_quic.c index 29d17947d..ce27cc728 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -4607,14 +4607,8 @@ static int qmux_ctl(struct connection *conn, enum mux_ctl_type mux_ctl, void *ou case MUX_CTL_GET_GLITCHES: return qcc->glitches; - case MUX_CTL_GET_NBSTRM: { - struct qcs *qcs; - unsigned int nb_strm = qcc->nb_sc; - - list_for_each_entry(qcs, &qcc->opening_list, el_opening) - nb_strm++; - return nb_strm; - } + case MUX_CTL_GET_NBSTRM: + return qcc->nb_hreq; case MUX_CTL_GET_MAXSTRM: return qcc->lfctl.ms_bidi_init;