]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux_quic: receive MAX_STREAMS_BIDI frames in QMux
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Apr 2026 13:36:38 +0000 (15:36 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 24 Apr 2026 07:33:04 +0000 (09:33 +0200)
Support reception via QMux of flow control MAX-STREAMS frame for
bidirectional streams. This is similar to the QUIC with shared
qcc_recv_max_streams() function.

src/mux_quic_qstrm.c

index 339a2f15fbd255ab7458603fc5125b8fafcc8deb..ffa7571ac2ec7ddecfabf726e2ac576dcbab1d00 100644 (file)
@@ -78,6 +78,10 @@ static int qstrm_parse_frm(struct qcc *qcc, struct buffer *buf)
                struct qf_max_stream_data *msd_frm = &frm.max_stream_data;
                qcc_recv_max_stream_data(qcc, msd_frm->id, msd_frm->max_stream_data);
        }
+       else if (frm.type == QUIC_FT_MAX_STREAMS_BIDI) {
+               struct qf_max_streams *ms_frm = &frm.max_streams_bidi;
+               qcc_recv_max_streams(qcc, ms_frm->max_streams, 1);
+       }
        else if (frm.type == QUIC_FT_DATA_BLOCKED ||
                 frm.type == QUIC_FT_STREAM_DATA_BLOCKED ||
                 frm.type == QUIC_FT_STREAMS_BLOCKED_BIDI ||