mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
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:
parent
24b8fe874e
commit
4667773a8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue