]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http-ana: Only set CF_EXPECT_MORE flag on data filtering
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jul 2020 14:34:59 +0000 (16:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jul 2020 14:46:37 +0000 (16:46 +0200)
commit2151cdd38cbc5ae92362ac471f0c9dddd640a802
treeb95be06f0e41a93e89859836e195120399af27c9
parent9e3dc8305bb96a3a745caf4111f6849bce45a914
BUG/MEDIUM: http-ana: Only set CF_EXPECT_MORE flag on data filtering

This flag is set by HTTP analyzers to notify that more data are epxected. It is
used to know if the CO_SFL_MSG_MORE flag must be set on the connection when data
are sent. Historically, it was set on chuncked messages and on compressed
responses. But in HTX, the chunked messages are parsed by the H1 multipexer. So
for this case, the infinite forwarding is enabled and the flag must no longer be
set. For the compression, the test must be extended and be applied on all data
filters. Thus it is also true for the request channel.

So, now, CF_EXPECT_MORE flag is set on a request or a response channel if there
is at least one data filter attached to the stream. In addition, the flag is
removed when the HTTP message analysis is finished.

This patch should partially fix the issue #756. It must be backported to 2.1.
src/http_ana.c