MINOR: listeners: count unstoppable jobs on creation, not deletion
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 16:25:14 +0000 (18:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 16:25:14 +0000 (18:25 +0200)
commit455585e3cdaa85471b50402cde26dd63c81fa3ea
treea788256f66ba683bda02fb896a6c8c08c74c417d
parentb4c083f5bfd3a7f35132313d6f6bb07b4e1772f8
MINOR: listeners: count unstoppable jobs on creation, not deletion

We have to count unstoppable jobs which correspond to worker sockpairs, in
order to know when to count. However the way it's currently done is quite
awkward because these are counted when stopping making the stop mechanism
non-idempotent. This is definitely something we want to fix before stopping
by protocol or our listeners count will quickly go wrong. Now they are
counted when the listeners are created.
src/cli.c
src/proxy.c