]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h1: Set CS_FL_EOS when read0 is detected and no data are pending
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 Dec 2018 10:39:55 +0000 (11:39 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 Dec 2018 13:57:58 +0000 (14:57 +0100)
In h1_process(), instead of setting CS_FL_REOS in this case, it is more accurate
to set CS_FL_EOS.

src/mux_h1.c

index 4b0dab3598165b5d5b66bc1adffbe2a22c4f29a3..58e0879470c835a7e75c59e477f89744942cbc1d 100644 (file)
@@ -1699,7 +1699,7 @@ static int h1_process(struct h1c * h1c)
                if (h1c->flags & H1C_F_CS_ERROR || conn->flags & CO_FL_ERROR)
                        flags |= CS_FL_ERROR;
                if (conn_xprt_read0_pending(conn))
-                       flags |= CS_FL_REOS;
+                       flags |= CS_FL_EOS;
                h1s->cs->flags |= flags;
                h1s->cs->data_cb->wake(h1s->cs);
        }