From: Christopher Faulet Date: Tue, 30 Apr 2024 13:15:07 +0000 (+0200) Subject: MINOR: mux-quic: Set tha SE abort reason when a STOP_SENDING frame is received X-Git-Tag: v3.0-dev11~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=367ce1ebf3e4cead319a9f01581037c9f0280e77;p=thirdparty%2Fhaproxy.git MINOR: mux-quic: Set tha SE abort reason when a STOP_SENDING frame is received 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. --- diff --git a/src/mux_quic.c b/src/mux_quic.c index d7474ffb2b..d9d059034c 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -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