]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h2: report asynchronous errors in h2_wake_some_streams()
authorWilly Tarreau <w@1wt.eu>
Tue, 18 Dec 2018 15:44:28 +0000 (16:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Dec 2018 15:46:24 +0000 (16:46 +0100)
commita8519357c500519a9022204f5637f03c26047c0d
tree0364a2fcafe7ef173758ba8743c47ac19108da40
parent7ecb6f10a480ebcaaf03876558f103f717fb8485
BUG/MEDIUM: mux-h2: report asynchronous errors in h2_wake_some_streams()

This function is called when dealing with a connection error or a GOAWAY
frame. It used to report a synchronous error instead of an asycnhronous
error, which can lead to data truncation since whatever is still available
in the rxbuf will be ignored. Let's correctly use CS_FL_ERR_PENDING instead
and only fall back to CS_FL_ERROR if CS_FL_EOS was already delivered.

No backport is needed.
src/mux_h2.c