From: Olivier Houchard Date: Thu, 29 Nov 2018 16:06:17 +0000 (+0100) Subject: BUG/MEDIUM: h2: Call h2_process() if there's an error on the connection. X-Git-Tag: v1.9-dev9~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4667773a8afb7324b96c9326086538826aa42a5b;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 4914927eca..336bd4e0f9 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -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)