MINOR: h2: keep a count of the number of conn_streams attached to the mux
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 07:04:05 +0000 (09:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 07:06:37 +0000 (09:06 +0200)
commit7ac60e836ad7c0dae3412c289b34c5affbec7d0a
tree2109a3075182cf1bd66bde4e7de9fe875dcf03c3
parent17b4aa1adc88987f411ae007b7865c59cdf37c1b
MINOR: h2: keep a count of the number of conn_streams attached to the mux

The h2 mux only knows about the number of H2 streams which are not in a
CLOSED state. This is used for protocol compliance. But it doesn't hold
the number of really attached streams. It is a problem because depending
on scheduling, it is possible that more streams are attached to the mux
than the ones seen at the protocol level, due to some streams taking some
time to be detached. Let's add this count based on the conn_streams.

Note: this patch is part of a series of fixes which will have to be
backported to 1.8.
src/mux_h2.c