From: Amaury Denoyelle Date: Tue, 17 Feb 2026 17:13:54 +0000 (+0100) Subject: MINOR: mux-quic: add BUG_ON_STRESS() when draining data on closed stream X-Git-Tag: v3.4-dev5~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18a78956cb0a73238d5fe5d87b0444cbe8526529;p=thirdparty%2Fhaproxy.git 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. --- 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; }