BUG/MINOR: filters: Skip disabled proxies during startup only
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Nov 2020 15:40:37 +0000 (16:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Nov 2020 15:51:48 +0000 (16:51 +0100)
commit743bd6adc8a7657b324ac59376311d23d65bb4ed
tree0954821d0fed2176749857bab997fb42995b5a29
parent9dd7f4fb4bf84450f0eb01b6e2d206f8481727fb
BUG/MINOR: filters: Skip disabled proxies during startup only

This partially reverts the patch 400829cd2 ("BUG/MEDIUM: filters: Don't try to
init filters for disabled proxies"). Disabled proxies must not be skipped in
flt_deinit() and flt_deinit_all_per_thread() when HAProxy is stopped because,
obvioulsy, at this step, all proxies appear as disabled (or stopped, it is the
same state). It is safe to do so because, during startup, filters declared on
disabled proxies are removed. Thus they don't exist anymore during shutdown.

This patch must be backported in all versions where the patch above is.
src/filters.c