MINOR: mux-h1: Disable reads if an error was reported on the H1 stream
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Sep 2020 15:33:22 +0000 (17:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
commit119ac870ce38183b362287be4e43f688964195ef
tree688d8e65f0dbdaaecc84dd5fd440db86bb290a1e
parent295b8d1649855e75e975909cffff60be3ee0b72c
MINOR: mux-h1: Disable reads if an error was reported on the H1 stream

Don't try to read more data if a parsing or a formatting error was reported
on the H1 stream. There is no reason to continue to process the messages for
the current connection in this case. If a parsing error occurs, it means the
input is invalid. If a formatting error occurs, it is an internal error and
it is probably safer to give up.
src/mux_h1.c