]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: mux-h1: Always set CS_FL_RCV_MORE when data are received in h1_recv()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 4 Dec 2018 14:54:12 +0000 (15:54 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 4 Dec 2018 15:43:30 +0000 (16:43 +0100)
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.

src/mux_h1.c

index 6b00320bdea43257e90eeacdfd50582bb2a095d1..494c56328b07f7d74006e7f19f5e4bfbe9aeb8a2 100644 (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;
                }