]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: mux-h2: Don't bother flagging outgoing connections as TOOMANY.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 28 Nov 2018 14:41:48 +0000 (15:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2018 12:31:53 +0000 (13:31 +0100)
When creating a new stream, don't bother flagging a connection with
H2_CF_DEM_TOOMANY if we created the last available stream. We won't create
any other anyway, because h2_avail_streams() would return 0 available streams,
and has it is a blocking flag, it prevents us from reading data after.

src/mux_h2.c

index b5bef03236cc179a2df7b5fbe286c7c773d65a3e..ae872f1c682ed9a17592b558834387ed457f9b00 100644 (file)
@@ -830,9 +830,6 @@ static struct h2s *h2c_bck_stream_new(struct h2c *h2c, struct conn_stream *cs)
        cs->ctx = h2s;
        h2c->nb_cs++;
 
-       /* OK done, the stream lives its own life now */
-       if (h2_has_too_many_cs(h2c))
-               h2c->flags |= H2_CF_DEM_TOOMANY;
  out:
        return h2s;
 }