BUG/MINOR: filters: Always set FLT_END analyser when CF_FLT_ANALYZE flag is set
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Aug 2021 12:00:46 +0000 (14:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Sep 2021 14:39:58 +0000 (16:39 +0200)
commit92586346cabfc0d6bc3d354b29e7f333ac2a6c64
treebb1593f6181f25f9da3d79e84e56cb43c3da3afb
parent376b574162b85fe1651c7bc96498b1caea0f19ef
BUG/MINOR: filters: Always set FLT_END analyser when CF_FLT_ANALYZE flag is set

CF_FLT_ANALYZE flags may be set before the FLT_END analyser. Thus if an error is
triggered in the mean time, this may block the stream and prevent it to be
released. It is indeed a problem only for the response channel because the
response analysers may be skipped on early errors.

So, to prevent any issue, depending on the code path, the FLT_END analyser is
systematically set when the CF_FLT_ANALYZE flag is set.

This patch must be backported in all stable branches.

(cherry picked from commit 26eb5ea352c2ba8b25f014222773fb6946004bef)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit feca2a4534092158319d43c65dd23ffd61889a5a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/filters.c