]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: add BUG_ON_STRESS() when draining data on closed stream
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 17 Feb 2026 17:13:54 +0000 (18:13 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 17 Feb 2026 17:18:44 +0000 (18:18 +0100)
Add a BUG_ON_STRESS() to be able to detect if data draining is performed
due to early stream closure.

src/mux_quic.c

index 7816b63ab406ea13361bb81faf8cd45359ffed3d..b24f2086b6797669b81a5e13c36a2b95f2b1466a 100644 (file)
@@ -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;
        }