BUG/MEDIUM: queue: prevent a backup server from draining the proxy's connections
authorWilly Tarreau <w@1wt.eu>
Tue, 7 Aug 2018 08:44:58 +0000 (10:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Aug 2018 08:52:01 +0000 (10:52 +0200)
commita8694654ba021bf1e0e560a98ab5e70dc44d212e
tree34dc32d7904df21fc62ce42c800986a9401bc2ac
parent6a78e61694d69beb49c0e8486be9550f5e8b7d08
BUG/MEDIUM: queue: prevent a backup server from draining the proxy's connections

When switching back from a backup to an active server, the backup server
currently continues to drain the proxy's connections, which is a problem
because it's not expected to be able to pick them.

This patch ensures that a backup server will only pick backend connections
if there is no active server and it is the selected backup server or all
backup servers are supposed to be used.

This issue seems to have existed forever, so this fix should be backported
to all stable versions.
src/queue.c