commit | 38dba27d4d2b3a39bb88893023c5269a871b52f2 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Nov 04 13:54:00 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Nov 04 14:22:42 2020 +0100 |
tree | 231abb413868051dead78a688d9bd792fe8d3441 | |
parent | dfe79251dab0346fe4c71e7e3da7bb87d41c880c [diff] |
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.