]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listeners: check the current listener state in pause_listener()
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Sep 2020 12:46:34 +0000 (14:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 09:27:30 +0000 (11:27 +0200)
commit9b3a932777456197a601feaf4cf8311ec20a68a7
tree490ed5c483bec0caf732211c8e85276d6ccfb282
parent337c835d16b936b576cdb6c746d575de20837905
MINOR: listeners: check the current listener state in pause_listener()

It's better not to try to perform pause() actions on wrong states, so
let's check this and make sure that all callers are now safe. This
means that we must not try to pause a listener which is already paused
(e.g. it could possibly fail if the pause operation isn't idempotent at
the socket level), nor should we try it on earlier states.
src/listener.c