]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] listeners: add support for queueing resource limited listeners
authorWilly Tarreau <w@1wt.eu>
Sun, 24 Jul 2011 20:03:52 +0000 (22:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 24 Jul 2011 20:03:52 +0000 (22:03 +0200)
commite6ca1fcd845f051f1465219d93f3be2e716b7de6
tree9124520ab2d148f289fb74edccf5267a3f27a251
parent627937158f7db8f1a5a951dac65b57777074947d
[MINOR] listeners: add support for queueing resource limited listeners

When a listeners encounters a resource shortage, it currently stops until
one re-enables it. This is far from being perfect as it does not yet handle
the case where the single connection from the listener is rejected (eg: the
stats page).

Now we'll have a special status for resource limited listeners and we'll
queue them into one or multiple lists. That way, each time we have to stop
a listener because of a resource shortage, we can enqueue it and change its
state, so that it is dequeued once more resources are available.

This patch currently does not change any existing behaviour, it only adds
the basic building blocks for doing that.
include/proto/protocols.h
include/types/protocols.h
src/protocols.c