From e69db64eb0a84bee922ba190915a426191299eaf Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 7 Oct 2014 23:38:54 +1100 Subject: [PATCH] Add commands to reject and accept further connections --- src/ckpool.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ckpool.c b/src/ckpool.c index 31746936..1a2ce6bd 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -286,6 +286,14 @@ retry: Close(connfd); } else LOGWARNING("Failed to send_procmsg to connector"); + } else if (cmdmatch(buf, "accept")) { + LOGWARNING("Listener received accept message, accepting clients"); + send_unix_msg(sockd, "accepting"); + send_procmsg(ckp->connector, "accept"); + } else if (cmdmatch(buf, "reject")) { + LOGWARNING("Listener received reject message, rejecting clients"); + send_unix_msg(sockd, "rejecting"); + send_procmsg(ckp->connector, "reject"); } else if (cmdmatch(buf, "restart")) { LOGWARNING("Listener received restart message, attempting handover"); send_unix_msg(sockd, "restarting");