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.
This commit is contained in:
Amaury Denoyelle 2026-02-17 18:13:54 +01:00
parent 4c275c7d17
commit 18a78956cb

View 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;
}