From: Olivier Houchard Date: Sat, 15 Dec 2018 18:42:00 +0000 (+0100) Subject: MEDIUM: mux_h2: Always set CS_FL_NOT_FIRST for new conn_streams. X-Git-Tag: v1.9-dev11~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=746fb772f16ebb0a1832aa4a548f99d4da180f24;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 1cd76fdfbe..6403b020c2 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++;