BUG/MINOR: h2: ensure we can never send an RST_STREAM in response to an RST_STREAM
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Mar 2018 16:37:05 +0000 (17:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Mar 2018 16:37:05 +0000 (17:37 +0100)
commit8adae7c15ffb5df8fcbb41496735fef25d6c4df3
tree8aaeefc935b8e0ba0dba260f45ea227c535880c5
parentd1023bbab3985091a9968192bb984d7724a438a3
BUG/MINOR: h2: ensure we can never send an RST_STREAM in response to an RST_STREAM

There are some corner cases where this could happen by accident. Since
the spec explicitly forbids this (RFC7540#5.4.2), let's add a test in
the two only functions which make the RST to avoid this. Thanks to user
klzgrad for reporting this problem. Usually it is expected to be harmless
but may result in browsers issuing a warning.

This fix must be backported to 1.8.
src/mux_h2.c