mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-18 22:10:45 -04:00
BUG/MEDIUM: mux-h2: stop sending using HTX on errors
We didn't take care of the stream error in the HTX send loop, causing some errors (like buffer full) to provoke 100% CPU. No backport is needed.
This commit is contained in:
parent
8e162ee1f9
commit
c14999b3bc
1 changed files with 2 additions and 1 deletions
|
|
@ -4612,7 +4612,8 @@ static size_t h2_snd_buf(struct conn_stream *cs, struct buffer *buf, size_t coun
|
|||
}
|
||||
|
||||
if (htx) {
|
||||
while (!(h2s->flags & H2_SF_BLK_ANY) && count && !htx_is_empty(htx)) {
|
||||
while (h2s->st < H2_SS_ERROR && !(h2s->flags & H2_SF_BLK_ANY) &&
|
||||
count && !htx_is_empty(htx)) {
|
||||
idx = htx_get_head(htx);
|
||||
blk = htx_get_blk(htx, idx);
|
||||
btype = htx_get_blk_type(blk);
|
||||
|
|
|
|||
Loading…
Reference in a new issue