]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: Use the dummy error when decoding headers for a closed stream
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 26 Sep 2019 14:19:13 +0000 (16:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 26 Sep 2019 14:51:02 +0000 (16:51 +0200)
commitea7a7781a94addb9fb18ef8064c96d73fe5add3d
treeb007c2377d1f4f2457cf4b0b89dc90a19b5345cb
parentb2d930ebe63a9e995a8473d109b5d1891ee941ed
BUG/MINOR: mux-h2: Use the dummy error when decoding headers for a closed stream

Since the commit 6884aa3e ("BUG/MAJOR: mux-h2: Handle HEADERS frames received
after a RST_STREAM frame"), HEADERS frames received for an unknown or already
closed stream are decoded. Once decoded, an error is reported for the
stream. But because it is a dummy stream (h2_closed_stream), its state cannot be
changed. So instead, we must return the dummy error stream (h2_error_stream).

This patch must be backported to 2.0 and 1.9.
src/mux_h2.c