From 18a78956cb0a73238d5fe5d87b0444cbe8526529 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Tue, 17 Feb 2026 18:13:54 +0100 Subject: [PATCH] MINOR: mux-quic: add BUG_ON_STRESS() when draining data on closed stream Add a BUG_ON_STRESS() to be able to detect if data draining is performed due to early stream closure. --- src/mux_quic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mux_quic.c b/src/mux_quic.c index 7816b63ab..b24f2086b 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -4089,6 +4089,7 @@ static size_t qmux_strm_snd_buf(struct stconn *sc, struct buffer *buf, /* Cannot emit data after FIN/RESET_STREAM, drain extra payload. */ if (qcs_is_close_local(qcs) || (qcs->flags & QC_SF_TO_RESET)) { + BUG_ON_STRESS(1); ret = qcs_http_reset_buf(qcs, buf, count); goto end; } -- 2.47.3