BUG/MEDIUM: filters: Exec pre/post analysers only one time per filter
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 20 May 2021 16:00:55 +0000 (18:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 May 2021 07:59:00 +0000 (09:59 +0200)
commita6d3704e38b6c1cb09286e9778b6363825d65c4d
treeca6b6b182e3752440260d1ac5a56d1b2ba26f82a
parent65b86685e1bdc77bc2ea6c2ed888d1cf8ca8f484
BUG/MEDIUM: filters: Exec pre/post analysers only one time per filter

For each filter, pre and post callback functions must only be called one
time. To do so, when one of them is finished, the corresponding analyser bit
must be removed from pre_analyzers or post_analyzers bit field. It is only
an issue with pre-analyser callback functions if the corresponding analyser
yields. It may happens with lua action for instance. In this case, the
filters pre analyser callback function is unexpectedly called several times.

This patch should fix the issue #1263. It must be backported is all stable
versions.
src/filters.c