]> 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, 12 Oct 2008 10:07:48 +0000 (12:07 +0200)
commita944218e9c1d5ff1aca34609146389dc680335b7
treefa8b7aa9e7fe761483a1ead0559a90f41b76d557
parenteab5c70f93c0a44223f706f6c120ad8d59f28796
[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