mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
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:
parent
4c275c7d17
commit
18a78956cb
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue