mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
MEDIUM: h1: Don't try to subscribe if we managed to read data.
In h1_recv(), don't subscribe if we managed to receive data. We may not have to, if we received a complete request, and a new receive will be attempted later, as the tasklet is woken up either by h1_rcv_buf() or by h1_detach.
This commit is contained in:
parent
41f638c1eb
commit
cc3fec8ac9
@ -1945,7 +1945,7 @@ static int h1_recv(struct h1c *h1c)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!h1_recv_allowed(h1c) || !buf_room_for_htx_data(&h1c->ibuf)) {
|
if (ret > 0 || !h1_recv_allowed(h1c) || !buf_room_for_htx_data(&h1c->ibuf)) {
|
||||||
rcvd = 1;
|
rcvd = 1;
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user