Browse Source

Send a dropall to the stratifier when we're in reject mode

master
Con Kolivas 9 years ago
parent
commit
99ce264a8e
  1. 1
      src/connector.c
  2. 2
      src/stratifier.c

1
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;

2
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 */

Loading…
Cancel
Save