mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-01 21:01:26 -05:00
BUG/MEDIUM: h1: Set CS_FL_REOS if we had a read0.
In h1_recv(), if we get a read0, let the conn_stream know by setting the CS_FL_REOS flag, or it may never be aware we did hit EOS. This should not be backported.
This commit is contained in:
parent
e7284780cf
commit
6a2d334812
1 changed files with 2 additions and 0 deletions
|
|
@ -1587,6 +1587,8 @@ static int h1_recv(struct h1c *h1c)
|
||||||
h1s->recv_wait = NULL;
|
h1s->recv_wait = NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if (conn_xprt_read0_pending(conn))
|
||||||
|
h1s->cs->flags |= CS_FL_REOS;
|
||||||
if (!b_data(&h1c->ibuf))
|
if (!b_data(&h1c->ibuf))
|
||||||
h1_release_buf(h1c, &h1c->ibuf);
|
h1_release_buf(h1c, &h1c->ibuf);
|
||||||
else if (!buf_room_for_htx_data(&h1c->ibuf))
|
else if (!buf_room_for_htx_data(&h1c->ibuf))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue