mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 23:44:41 +00: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
@ -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 New Issue
Block a user