MINOR: startup: don't rely on PR_STNEW to check for listeners
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Sep 2020 06:15:48 +0000 (08:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 09:27:30 +0000 (11:27 +0200)
commitb50bf046e8340d32a2034affdc515881e0b5caf7
tree3a65f2bdaa9fbd07c2d093af414a1eb4bd05ce86
parentf18d968830ff66638ef99498c241054e3a03195c
MINOR: startup: don't rely on PR_STNEW to check for listeners

Instead of looking at listeners in proxies in PR_STNEW state, we'd
rather check for listeners in those not in PR_STSTOPPED as it's only
this state which indicates the proxy was disabled. And let's check
the listeners count instead of testing the list's head.
src/haproxy.c