]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: don't close the connection is there are data left
authorWilly Tarreau <w@1wt.eu>
Tue, 7 Nov 2017 10:48:46 +0000 (11:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Nov 2017 13:47:04 +0000 (14:47 +0100)
commit83906c2f912ea46373fda5795f398c5c657f01e8
tree4afca8c7b545bc1b6b3ecfb757f13965627580e6
parentf5d79ac5a84712aac1c4af53159e66ae45d32edf
BUG/MEDIUM: h2: don't close the connection is there are data left

h2_detach() is called after a stream was closed, and it evaluates if it's
worth closing the connection. The issue there is that the connection is
closed too early in case there's demand for closing after the last stream,
even if some data remain in the mux. Let's change the condition to check
for this.
src/mux_h2.c