BUG/MINOR: listener/mq: do not dispatch connections to remote threads when stopping
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2020 16:33:29 +0000 (17:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 14:52:58 +0000 (16:52 +0200)
commit718e9b46ab269df96c228940850d09f23d08e7c5
tree72d4ba3b834e3163d89e7bad9b411b5248a4a67a
parent6f775c08097ba817969739a6c2c647b54cf85471
BUG/MINOR: listener/mq: do not dispatch connections to remote threads when stopping

When stopping there is a risk that other threads are already in the
process of stopping, so let's not add new work in their queue and
instead keep the incoming connection local.

This should be backported to 2.1 and 2.0.

(cherry picked from commit a7da5e8dd058ee1e283a06342e9701a8eca78ac6)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/listener.c