]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: do not report available outgoing streams after GOAWAY
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Jan 2019 05:40:19 +0000 (06:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Jan 2019 05:44:53 +0000 (06:44 +0100)
commit6afec46ba327ef4de202271397f61ef4cf8a0d7d
tree4751d91063a8849d60d6da165464952f4c845aa2
parent888d5678f7829e0685d0f692cdb159e655ac0e25
BUG/MINOR: mux-h2: do not report available outgoing streams after GOAWAY

The calculation of available outgoing H2 streams was improved by commit
d64a3ebe6 ("BUG/MINOR: mux-h2: always check the stream ID limit in
h2_avail_streams()"), but it still is incorrect because RFC7540#6.8
specifically forbids the creation of new streams after a GOAWAY frame
was received. Thus we must not mark the connection as available anymore
in order to be able to handle a graceful shutdown.

This needs to be backported to 1.9.
src/mux_h2.c