Skip to content

Commit f9d4d65

Browse files
committed
MINOR: mux_quic: handle MAX_STREAMS for uni stream in QMux
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.
1 parent c0aa91a commit f9d4d65

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/qcm_qmux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ static int qmux_parse_frm(struct qcc *qcc, struct buffer *buf)
8686
struct qf_max_streams *ms_frm = &frm.max_streams_bidi;
8787
qcc_recv_max_streams(qcc, ms_frm->max_streams, 1);
8888
}
89+
else if (frm.type == QUIC_FT_MAX_STREAMS_UNI) {
90+
struct qf_max_streams *ms_frm = &frm.max_streams_uni;
91+
qcc_recv_max_streams(qcc, ms_frm->max_streams, 0);
92+
}
8993
else if (frm.type == QUIC_FT_DATA_BLOCKED ||
9094
frm.type == QUIC_FT_STREAM_DATA_BLOCKED ||
9195
frm.type == QUIC_FT_STREAMS_BLOCKED_BIDI ||

0 commit comments

Comments
 (0)