From 289caa273263258a18a062e105f14a3f47305673 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 7 Feb 2015 11:29:28 +1100 Subject: [PATCH] Issue reconnect to generator immediately upon a reconnect request --- src/generator.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/generator.c b/src/generator.c index 3a95c7f1..c449d2e6 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1591,7 +1591,12 @@ static void *proxy_recv(void *arg) proxi->diffed = false; } if (proxi->reconnect) { + /* Call this proxy dead to allow us to fail + * over to a backup pool until the reconnect + * pool is up */ proxi->reconnect = false; + proxi->alive = false; + send_proc(ckp->generator, "reconnect"); LOGWARNING("Proxy %d:%s reconnect issue, dropping existing connection", proxi->id, proxi->si->url); Close(cs->fd);