]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: make it possible to set the error code on an already closed stream
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 09:02:24 +0000 (10:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 14:27:06 +0000 (15:27 +0100)
commit175cebb38ad7e06ae207ab947b02a344660f981b
tree0d14c1bc9fa2b6d3e742549f80683bb2114cf9be
parent5b4eae33dee01224f0ece9db0891ca7a1fb2805d
BUG/MINOR: mux-h2: make it possible to set the error code on an already closed stream

When sending RST_STREAM in response to a frame delivered on an already
closed stream, we used not to be able to update the error code and
deliver an RST_STREAM with a wrong code (e.g. H2_ERR_CANCEL). Let's
always allow to update the code so that RST_STREAM is always sent
with the appropriate error code (most often H2_ERR_STREAM_CLOSED).

This should be backported to 1.9 and possibly to 1.8.
src/mux_h2.c