BUG/MEDIUM: mux-h1: Always set CS_FL_RCV_MORE when data are received in h1_recv()

It is a warranty that the data will be handled by the stream, even if an error
is reported on the connection or on the conn_stream.
This commit is contained in:
Christopher Faulet 2018-12-04 15:54:12 +01:00
parent 75159a96de
commit 37e3607e37

View File

@ -1492,7 +1492,7 @@ static int h1_recv(struct h1c *h1c)
if (ret > 0) {
rcvd = 1;
if (h1s && h1s->cs) {
h1s->cs->flags |= CS_FL_READ_PARTIAL;
h1s->cs->flags |= (CS_FL_READ_PARTIAL|CS_FL_RCV_MORE);
if (h1s->csinfo.t_idle == -1)
h1s->csinfo.t_idle = tv_ms_elapsed(&h1s->csinfo.tv_create, &now) - h1s->csinfo.t_handshake;
}