From 367ce1ebf3e4cead319a9f01581037c9f0280e77 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 30 Apr 2024 15:15:07 +0200 Subject: [PATCH] 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. --- src/mux_quic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mux_quic.c b/src/mux_quic.c index d7474ffb2..d9d059034 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