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.
This commit is contained in:
Olivier Houchard 2018-12-15 19:42:00 +01:00 committed by Willy Tarreau
parent 7aec9ed2f8
commit 746fb772f1

View 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++;