From b0b3a378177a7c161fb0536b3d91f66a89480f17 Thu, 19 Jan 2012 16:10:40 +0100 From: Stevo Slavic Date: Thu, 19 Jan 2012 16:10:10 +0100 Subject: [PATCH] Fixes clearing exit_request flag diff --git a/main.c b/main.c index 6b4b526..c0445bc 100644 --- a/main.c +++ b/main.c @@ -710,12 +710,13 @@ else { /* retry count over */ + retrycnt = 0; + retrying = false; + exit_request = 0; pool_log("set %d th backend down status", sts); Req_info->kind = NODE_DOWN_REQUEST; Req_info->node_id[0] = sts; failover(); - retrycnt = 0; - retrying = false; /* need to distribute this info to children */ } } @@ -728,6 +729,9 @@ if (retrycnt > NUM_BACKENDS) { /* retry count over */ + retrycnt = 0; + retrying = false; + exit_request = 0; pool_log("set %d th backend down status", sts); Req_info->kind = NODE_DOWN_REQUEST; Req_info->node_id[0] = sts;