]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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>
Fri, 13 Aug 2021 15:14:47 +0000 (17:14 +0200)
commit26eb5ea352c2ba8b25f014222773fb6946004bef
tree7a416b7ea2230d539f01949b5ba66dee1e736cbe
parent2c04a5a03de50c62fc6520a3cdcd1bab2de794cf
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.
src/filters.c