From af21689d6797eff3037fb1c2228225fb59da0f40 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 23 Feb 2015 21:19:18 +1100 Subject: [PATCH] Don't reconnect generator immediately after the reconnect message, waiting for the first proxy_alive test on the new instance --- src/generator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index 7622d8a4..bd8db15a 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1842,11 +1842,11 @@ static void *proxy_recv(void *arg) } if (proxy_alive(ckp, si, proxi, cs, false, epfd)) { - reconnect_generator(ckp); LOGWARNING("Proxy %d:%s connection established", proxi->id, proxi->si->url); } alive = proxi->alive; + reconnect_generator(ckp); while (42) { proxy_instance_t *subproxy = proxi; @@ -1922,7 +1922,6 @@ static void *proxy_recv(void *arg) * pool is up */ disable_subproxy(gdata, proxi, subproxy); if (parent_proxy(subproxy)) { - reconnect_generator(ckp); LOGWARNING("Proxy %d:%s reconnect issue, dropping existing connection", subproxy->id, subproxy->si->url); break;