]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: filters: Forward all filtered data at the end of http filtering
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Nov 2020 09:10:38 +0000 (10:10 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Nov 2020 08:59:35 +0000 (09:59 +0100)
commit22fca1f2c84334096e38d78ffc674be19c3e0292
treeabc4dfcdd5fe24bd6fb34c3874839c304cc268a9
parentafe36e457fbc21d403004d664ff0d926f0dea401
BUG/MEDIUM: filters: Forward all filtered data at the end of http filtering

When http filtering ends, if there are some filtered data not forwarded yet, we
forward them, in flt_http_end(). Most of time, this doesn't happen, except when
a tunnel is established using a CONNECT. In this case, there is not EOM on the
request and there is no body. Thus the headers are never forwarded, blocking the
stream.

This patch must be backported as far as 2.0. Prior versions don't suffer of this
bug because there is no HTX support. On the 2.0, the change is only applicable
on HTX streams. A special test must be performed to make sure.
src/filters.c