mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02: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
@ -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…
x
Reference in New Issue
Block a user