]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h2: make h2c_decode_headers() support recoverable errors
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 13:48:18 +0000 (14:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 17:45:38 +0000 (18:45 +0100)
commit259192370f182f2b4597fe1aecb8857e988b7c0e
tree765244a7f42d64a006683354f4d352b9824b4269
parentecb9dcdf932034f0a8aa084609f1e385a94a40db
MEDIUM: mux-h2: make h2c_decode_headers() support recoverable errors

When a decoding error is recoverable, we should emit a stream error and
not a connection error. This patch does this by carefully checking the
connection state before deciding to send a connection error. If only the
stream is in error, an RST_STREAM is sent.
src/mux_h2.c