From 1614204d2892fab7b32f1a5bf5db4c4a02d53056 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Wed, 6 May 2026 09:08:35 +0200 Subject: [PATCH] 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. --- src/mux_quic.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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; -- 2.47.3