]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: fix stream limit enforcement
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Dec 2017 11:00:14 +0000 (12:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Dec 2017 12:43:52 +0000 (13:43 +0100)
commit91bfdd7e04e105559c00f0d711842ad91ca96b26
tree58af8fabd700b962ce82640ba69761d536fd27f3
parent805935147a8d1520d8203b2bfe24726585e436a2
BUG/MEDIUM: h2: fix stream limit enforcement

Commit 4974561 ("BUG/MEDIUM: h2: enforce the per-connection stream limit")
implemented a stream limit enforcement on the connection but it was not
correctly done as it would count streams still known by the connection,
which includes the lingering ones that are already marked close. We need
to count only the non-closed ones, which this patch does. The effect is
that some streams are rejected a bit before the limit.

This fix needs to be backported to 1.8.
src/mux_h2.c