]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR:: mux-h1: Never handle error at mux level for running connection
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Dec 2022 10:13:00 +0000 (11:13 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Dec 2022 10:01:26 +0000 (11:01 +0100)
commitad4ed003f301133b8f960278c1b633172ef20d31
tree3aa2018ddcd3ca05f5e7cde1c781435a2ecca6d4
parent75028f83d4329740fa7b718f248b6312f48bc01e
BUG/MINOR:: mux-h1: Never handle error at mux level for running connection

During the request parsing, we must be sure to never handle errors at the
mux level if the connection is running (or closing). The error must be
handled by the upper layer.

It should never happen. But there is an edge case that was not properly
handled. If all data are received on the first packet with the read0 and the
request is truncated on the payload, in this case the stream-connector is
created, so the H1C is in RUNNING state. But an error is reported because
the request is truncated. In this specific case, the error is handled by the
mux while it should not.

This patch is related to #1966. It must be backported to 2.7.
src/mux_h1.c