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.
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;