]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: Don't close FDs if not our proxy.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 5 Apr 2017 23:05:05 +0000 (01:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Apr 2017 17:15:17 +0000 (19:15 +0200)
commit1fc0516516defd57574efb677d7f698757e62d68
tree73de35c79e1b39ec8662f2705981103bb0feb47b
parentd33fc3a7f5882add601725e71163539eb1163847
MINOR: proxy: Don't close FDs if not our proxy.

When running with multiple process, if some proxies are just assigned
to some processes, the other processes will just close the file descriptors
for the listening sockets. However, we may still have to provide those
sockets when reloading, so instead we just try hard to pretend those proxies
are dead, while keeping the sockets opened.
A new global option, no-reused-socket", has been added, to restore the old
behavior of closing the sockets not bound to this process.
12 files changed:
doc/configuration.txt
include/proto/fd.h
include/proto/listener.h
include/proto/proxy.h
include/types/global.h
include/types/listener.h
src/cfgparse.c
src/cli.c
src/fd.c
src/haproxy.c
src/listener.c
src/proxy.c