From 4667773a8afb7324b96c9326086538826aa42a5b Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 29 Nov 2018 17:06:17 +0100 Subject: [PATCH] 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. --- src/mux_h2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3