]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: proxy: wake up all threads when sending the hard-stop signal
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2021 10:13:59 +0000 (11:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2021 11:12:46 +0000 (12:12 +0100)
commit0d03825b93cc59a289e838105f9d83d53ccdfc8b
tree5436a39107044fd2f46cfe5f969251b015b6c197
parent3f5dd2945ccbed6b4baf23a453e9d1d071a2d835
BUG/MINOR: proxy: wake up all threads when sending the hard-stop signal

The hard-stop event didn't wake threads up. In the past it wasn't an issue
as the poll timeout was limited to 1 second, but since commit 4f59d3861
("MINOR: time: increase the minimum wakeup interval to 60s") it has become
a problem because old processes can remain live for up to one minute after
the hard-stop-after delay. Let's just wake them up.

This may be backported to older releases, though before 2.4 the extra
delay was only one second.
src/proxy.c