]> git.kaiwu.me - 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, 12 Oct 2008 20:35:26 +0000 (22:35 +0200)
commitc2e223d81bcefc20596cd44af606f401c8922f14
tree41f883b5cef5eb3a8c6b9b9cdd1d88b4595b3c80
parentd9c6ef0a4abfcb7e84e91204e8882c86cd6f68c8
[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.
include/proto/proxy.h
src/cfgparse.c
src/proxy.c