diff --git a/src/generator.c b/src/generator.c index 03bc9fd9..96eac99e 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1289,6 +1289,8 @@ retry: break; } if (!alive) { + send_proc(ckp->stratifier, "dropall"); + send_proc(ckp->connector, "reject"); if (!ckp->chosen_server) { LOGWARNING("Failed to connect to any servers as proxy, retrying in 5s!"); sleep(5); diff --git a/src/stratifier.c b/src/stratifier.c index e122f5e6..387d3a19 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1090,6 +1090,8 @@ retry: LOGDEBUG("Stratifier failed to parse dropclient command: %s", buf); else drop_client(client_id); + } else if (cmdmatch(buf, "dropall")) { + drop_allclients(ckp); } else if (cmdmatch(buf, "block")) { block_solve(ckp); } else if (cmdmatch(buf, "loglevel")) {