]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h2: immediately close if receiving GOAWAY after the last stream
authorWilly Tarreau <w@1wt.eu>
Sun, 3 Dec 2017 09:27:47 +0000 (10:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Dec 2017 20:08:40 +0000 (21:08 +0100)
commit11cc2d6031a8fefe78f083c4d364c8489b7dbbaf
tree2dce23b97e79798594e6fbec51caf9a8c1959fcc
parent811ad12414e43608fd9d20865990496918ca2dd6
BUG/MINOR: h2: immediately close if receiving GOAWAY after the last stream

The h2spec test suite reveals that a GOAWAY frame received after the
last stream doesn't cause an immediate close, because we count on the
last stream to quit to do so. By simply setting the last_sid to the
received value in case it was not set, we can ensure to properly close
an idle connection during h2_wake().

To be backported to 1.8.
src/mux_h2.c