]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux_quic: handle MAX_STREAMS for uni stream in QMux
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 May 2026 13:50:06 +0000 (15:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 May 2026 13:57:20 +0000 (15:57 +0200)
Handle reception of a MAX_STREAMS frame for unidirectional stream usage
when using QMux. This simply consists in using qcc_recv_max_streams() as
with QUIC protocol.

src/qcm_qmux.c

index 63275a6e03fd149fcaa6a896f73715b121b5b625..308a9d44ce08be2f6ad4a31804c8965c2d509482 100644 (file)
@@ -86,6 +86,10 @@ static int qmux_parse_frm(struct qcc *qcc, struct buffer *buf)
                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_MAX_STREAMS_UNI) {
+               struct qf_max_streams *ms_frm = &frm.max_streams_uni;
+               qcc_recv_max_streams(qcc, ms_frm->max_streams, 0);
+       }
        else if (frm.type == QUIC_FT_DATA_BLOCKED ||
                 frm.type == QUIC_FT_STREAM_DATA_BLOCKED ||
                 frm.type == QUIC_FT_STREAMS_BLOCKED_BIDI ||