]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: mux_h2: Always set CS_FL_NOT_FIRST for new conn_streams.
authorOlivier Houchard <cognet@ci0.org>
Sat, 15 Dec 2018 18:42:00 +0000 (19:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Dec 2018 22:50:11 +0000 (23:50 +0100)
When creating new conn_streams, always set the CS_FL_NOT_FIRST flag. We
don't really care about being the first request for HTTP/2, this only
really makes sense for HTTP/1, and that way we can reuse connections.

src/mux_h2.c

index 1cd76fdfbe09c8208a5ae026048995c8e8636600..6403b020c24f806e1152d72725f50601145aa3c9 100644 (file)
@@ -796,6 +796,7 @@ static struct h2s *h2c_frt_stream_new(struct h2c *h2c, int id)
        if (!cs)
                goto out_close;
 
+       cs->flags |= CS_FL_NOT_FIRST;
        h2s->cs = cs;
        cs->ctx = h2s;
        h2c->nb_cs++;