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:
Olivier Houchard 2019-01-29 18:28:36 +01:00 committed by Willy Tarreau
parent a48437bb5e
commit 2b09443e04

View File

@ -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;