BUG/MINOR: h2/mux-h2: Reject 101 responses with a PROTOCOL_ERROR h2s error
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 7 Dec 2020 17:24:43 +0000 (18:24 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Jan 2021 15:36:40 +0000 (16:36 +0100)
commit8989942cfc642a728233e575f9c6b1bf0890b411
treeda39aea61e099271a93ea8a76cf19c300108f57e
parent6e6c7b128454314cca50a7deaaf44326ad2c0953
BUG/MINOR: h2/mux-h2: Reject 101 responses with a PROTOCOL_ERROR h2s error

As stated in the RFC7540, section 8.1.1, the HTTP/2 removes support for the
101 informational status code. Thus a PROTOCOL_ERROR is now returned to the
server if a 101-switching-protocols response is received. Thus, the server
connection is aborted.

This patch may be backported as far as 2.0.
src/h2.c
src/mux_h2.c