]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: listener: only enable a listening listener if needed
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2020 12:54:00 +0000 (13:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2020 13:22:42 +0000 (14:22 +0100)
commit38dba27d4d2b3a39bb88893023c5269a871b52f2
tree231abb413868051dead78a688d9bd792fe8d3441
parentdfe79251dab0346fe4c71e7e3da7bb87d41c880c
BUG/MEDIUM: listener: only enable a listening listener if needed

The test on listener->state == LI_LISTEN is not sufficient to decide
if we need to enable a listener. Indeed, there is a very special case
which is the inherited FD shared, which has to reflect the real socket
state even after the previous test, and as such needs to remain in
LI_LISTEN state. In this case we don't want a worker to start the
master's listener nor conversely. Let's add a specific test for this.
src/listener.c