]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] ensure that listeners from disabled proxies are correctly unbound.
authorWilly Tarreau <w@1wt.eu>
Sun, 12 Oct 2008 10:07:48 +0000 (12:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 Dec 2008 22:33:25 +0000 (23:33 +0100)
commitda250db376381f4c36d2e6a846109bfdbbffa8dd
tree729526ac2d9902ec6fd8000c6c9efc7f7f2a1d09
parentf8fbcef83cf9c0bc237f2aaf2345fbd6ba7d0ff9
[BUG] ensure that listeners from disabled proxies are correctly unbound.

There is a problem when an instance is marked "disabled". Its ports are
still bound but will not be unbound upon termination. This causes processes
to accumulate during soft restarts, and might even cause failures to restart
new ones due to the inability to bind to the same port.

The ideal solution would be to bind all ports at the end of the configuration
parsing. An acceptable workaround is to unbind all listeners of disabled
proxies. This is what the current patch does.
(cherry picked from commit a944218e9c1d5ff1aca34609146389dc680335b7)
(cherry picked from commit 8cfebbb82b87345bade831920177077e7d25840a)
include/proto/proxy.h
src/cfgparse.c
src/proxy.c