]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: Set tha SE abort reason when a STOP_SENDING frame is received
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Apr 2024 13:15:07 +0000 (15:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 May 2024 20:00:00 +0000 (22:00 +0200)
When STOP_SENDING frame is received for a quic stream, the error code is now
saved in the SE abort reason. To do so, we use the QUIC source
(SE_ABRT_SRC_MUX_QUIC). For now, this code is only set but not used on the
opposite side.

src/mux_quic.c

index d7474ffb2bfcb0b3dfbaa50af89ff02d95236936..d9d059034c52ea63a5ac4896833af5e6e83d4d7d 100644 (file)
@@ -1593,6 +1593,12 @@ int qcc_recv_stop_sending(struct qcc *qcc, uint64_t id, uint64_t err)
                qcs_alert(qcs);
        }
 
+       /* If not defined yet, set abort info for the sedesc */
+       if (!qcs->sd->abort_info.info) {
+               qcs->sd->abort_info.info = (SE_ABRT_SRC_MUX_QUIC << SE_ABRT_SRC_SHIFT);
+               qcs->sd->abort_info.code = err;
+       }
+
        /* RFC 9000 3.5. Solicited State Transitions
         *
         * An endpoint that receives a STOP_SENDING frame