From 746fb772f16ebb0a1832aa4a548f99d4da180f24 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Sat, 15 Dec 2018 19:42:00 +0100 Subject: [PATCH] MEDIUM: mux_h2: Always set CS_FL_NOT_FIRST for new conn_streams. 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mux_h2.c b/src/mux_h2.c index 1cd76fdfb..6403b020c 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -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++;