]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: filters: Don't deinit filters for disabled proxies during startup
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 May 2023 07:11:57 +0000 (09:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 May 2023 07:22:46 +0000 (09:22 +0200)
commit0fda8d2c8e0b4b84d474af79003537eef37d11ba
tree69b77f65b63364adfc263627ac6c7c44d308f85f
parent7f4ffad46e98b1004a348d4853693035400a0443
BUG/MEDIUM: filters: Don't deinit filters for disabled proxies during startup

During the startup stage, if a proxy was disabled in config, all filters
were released and removed. But it may be an issue if some info are shared
between filters of the same type. Resources may be released too early.

It happens with ACLs defined in SPOE configurations. Pattern expressions can
be shared between filters. To fix the issue, filters for disabled proxies
are no longer released during the startup stage but only when HAProxy is
stopped.

This commit depends on the previous one ("MINOR: spoe: Don't stop disabled
proxies"). Both must be backported to all stable versions.
src/filters.c