]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux_quic: handle STOP_SENDING in QMux
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 May 2026 13:48:31 +0000 (15:48 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 May 2026 13:57:20 +0000 (15:57 +0200)
Ensure reception of STOP_SENDING via QMux protocol is properly handled.
This simply consists in using qcc_recv_stop_sending() which will update
the associated QCS if found.

src/qcm_qmux.c

index a183a1587e03c870aa514de562a3689811339ae4..63275a6e03fd149fcaa6a896f73715b121b5b625 100644 (file)
@@ -70,6 +70,10 @@ static int qmux_parse_frm(struct qcc *qcc, struct buffer *buf)
                struct qf_reset_stream *rst_frm = &frm.reset_stream;
                qcc_recv_reset_stream(qcc, rst_frm->id, rst_frm->app_error_code, rst_frm->final_size);
        }
+       else if (frm.type == QUIC_FT_STOP_SENDING) {
+               struct qf_stop_sending *ss_frm = &frm.stop_sending;
+               qcc_recv_stop_sending(qcc, ss_frm->id, ss_frm->app_error_code);
+       }
        else if (frm.type == QUIC_FT_MAX_DATA) {
                struct qf_max_data *md_frm = &frm.max_data;
                qcc_recv_max_data(qcc, md_frm->max_data);