BUG/MEDIUM: h2: Call h2_process() if there's an error on the connection.

In h2_recv(), return 1 if there's an error on the connection, not just if
there's a read0 pending, so that h2_process() can be called and act as a
janitor.
This commit is contained in:
Olivier Houchard 2018-11-29 17:06:17 +01:00 committed by Willy Tarreau
parent 24b8fe874e
commit 4667773a8a

View File

@ -2258,7 +2258,7 @@ static int h2_recv(struct h2c *h2c)
if (!b_data(buf)) {
h2_release_buf(h2c, &h2c->dbuf);
return conn_xprt_read0_pending(conn);
return (conn->flags & CO_FL_ERROR || conn_xprt_read0_pending(conn));
}
if (b_data(buf) == buf->size)