From: Christopher Faulet Date: Tue, 4 Dec 2018 14:54:12 +0000 (+0100) Subject: BUG/MEDIUM: mux-h1: Always set CS_FL_RCV_MORE when data are received in h1_recv() X-Git-Tag: v1.9-dev10~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37e3607e3724287e64702bf198df6e1d2d38931c;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/mux_h1.c b/src/mux_h1.c index 6b00320bde..494c56328b 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -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; }