]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] listeners: add a global listener management task
authorWilly Tarreau <w@1wt.eu>
Mon, 1 Aug 2011 18:57:55 +0000 (20:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Aug 2011 18:57:55 +0000 (20:57 +0200)
commite9b2602ac5ac8f0c63f6eb44a33329ca86f0e4f9
tree644d49c61d6e76844cf920ca1d473c0d796373b3
parent237250cc0d89492b4434c577b2256fdc430ddad4
[MEDIUM] listeners: add a global listener management task

This global task is used to periodically check for end of resource shortage
and to try to enable queued listeners again. This is important in case some
temporary system-wide shortage is encountered, so that we don't have to wait
for an existing connection to be released before checking the queue again.

For situations where listeners are queued due to the global maxconn being
reached, the task is woken up at least every second. For situations where
a system resource shortage is detected (memory, sockets, ...) the task is
woken up at least every 100 ms. That way, recovery from severe events can
still be achieved under acceptable conditions.
include/types/global.h
src/haproxy.c
src/stream_sock.c