mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-14 19:43:29 -04:00
BUG/MEDIUM: h2: In h2_send(), stop the loop if we failed to alloc a buf.
In h2_send(), make sure we break the loop if we failed to alloc a buffer, or we'd end up looping endlessly. This should be backported to 1.9.
This commit is contained in:
parent
a48437bb5e
commit
2b09443e04
1 changed files with 3 additions and 0 deletions
|
|
@ -2723,6 +2723,9 @@ static int h2_send(struct h2c *h2c)
|
|||
while (((h2c->flags & (H2_CF_MUX_MFULL|H2_CF_MUX_MALLOC)) == 0) && !done)
|
||||
done = h2_process_mux(h2c);
|
||||
|
||||
if (h2c->flags & H2_CF_MUX_MALLOC)
|
||||
break;
|
||||
|
||||
if (conn->flags & CO_FL_ERROR)
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue