]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: startup: add bind_listeners
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 7 Oct 2024 09:06:08 +0000 (11:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commit26a6fdf54277d5dc2bf0bd220e1ff237dd3dc7b0
tree224a9b9ac1998503edc03115085af0e3faa76d52
parentbabbcb047ede1b2d68f3b4df172b312335e6304e
MINOR: startup: add bind_listeners

Let's encapsulate here the code, which tries to bind listeners for the new
process in a separate function. This will make the main() code more readable.
Master process, even if it has failed while reading its new configuration, has
to bind its master CLI sockets. So like this we will can call this function in
the master recovery mode.

Master CLI socket address and port for external connections (user, monitoring
tools) are provided for now only via the command line. So, master, even after
this failure can and must reestablish master CLI connections again.
src/haproxy.c