Skip to content

Commit 1614204

Browse files
committed
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 <nb_hreq> identifies them until the QCS free. Thus, MUX_CTL_GET_NBSTRM can be simplified. Instead of relying on <nb_sc> plus the <opening_list>, simply return <nb_hreq> value which should be slighly identical.
1 parent 3cfb08c commit 1614204

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/mux_quic.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4607,14 +4607,8 @@ static int qmux_ctl(struct connection *conn, enum mux_ctl_type mux_ctl, void *ou
46074607
case MUX_CTL_GET_GLITCHES:
46084608
return qcc->glitches;
46094609

4610-
case MUX_CTL_GET_NBSTRM: {
4611-
struct qcs *qcs;
4612-
unsigned int nb_strm = qcc->nb_sc;
4613-
4614-
list_for_each_entry(qcs, &qcc->opening_list, el_opening)
4615-
nb_strm++;
4616-
return nb_strm;
4617-
}
4610+
case MUX_CTL_GET_NBSTRM:
4611+
return qcc->nb_hreq;
46184612

46194613
case MUX_CTL_GET_MAXSTRM:
46204614
return qcc->lfctl.ms_bidi_init;

0 commit comments

Comments
 (0)