commit | 9b3a932777456197a601feaf4cf8311ec20a68a7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Sep 24 14:46:34 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Oct 09 11:27:30 2020 +0200 |
tree | 490ed5c483bec0caf732211c8e85276d6ccfb282 | |
parent | 337c835d16b936b576cdb6c746d575de20837905 [diff] |
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.