From 99ce264a8e72309549904bcad35ceb7c1b7b0e84 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 21 Sep 2015 13:17:57 +1000 Subject: [PATCH] Send a dropall to the stratifier when we're in reject mode --- src/connector.c | 1 + src/stratifier.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index 46142cc4..608fb556 100644 --- a/src/connector.c +++ b/src/connector.c @@ -1067,6 +1067,7 @@ retry: } else if (cmdmatch(buf, "reject")) { LOGDEBUG("Connector received reject signal"); cdata->accept = false; + send_proc(ckp->stratifier, "dropall"); } else if (cmdmatch(buf, "stats")) { char *msg; diff --git a/src/stratifier.c b/src/stratifier.c index 55cbc3dc..0b7890cd 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1138,7 +1138,7 @@ static void drop_allclients(ckpool_t *ckp) ck_wunlock(&sdata->instance_lock); if (kills) - LOGNOTICE("Dropped %d instances", kills); + LOGNOTICE("Dropped %d instances for dropall request", kills); } /* Copy only the relevant parts of the master sdata for each subproxy */