BUG/MEDIUM: proxy: properly stop backends on soft-stop
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Mar 2023 13:33:11 +0000 (14:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Mar 2023 14:23:55 +0000 (15:23 +0100)
commit48678e483f4f47e2a212a545399009b87503ea2d
tree71b966d1120c202a5b372743b961bfb0283a495f
parent7716f2773629cd21ee9413b47cb73f7adf69ecc0
BUG/MEDIUM: proxy: properly stop backends on soft-stop

On soft-stop, we must properlu stop backends and not only proxies with at
least a listener. This is mandatory in order to stop the health checks. A
previous fix was provided to do so (ba29687bc1 "BUG/MEDIUM: proxy: properly
stop backends"). However, only stop_proxy() function was fixed. When HAproxy
is stopped, this function is no longer used. So the same kind of fix must be
done on do_soft_stop_now().

This patch partially fixes the issue #1874. It must be backported as far as
2.4.
src/proxy.c