From ffdac57b0e78d705857c3dd99a71415b90054c62 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 15 Feb 2015 14:20:05 +1100 Subject: [PATCH] Decrease failback time to 30 seconds on proxy --- src/generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index 4a58371c..ab9384ba 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1753,9 +1753,9 @@ static void *proxy_recv(void *arg) sleep(5); proxi->reconnect_time = time(NULL); } - /* Wait 90 seconds before declaring this upstream pool alive + /* Wait 30 seconds before declaring this upstream pool alive * to prevent switching to unstable pools. */ - if (!alive && (!current_proxy(gdata) || time(NULL) - proxi->reconnect_time > 90)) { + if (!alive && (!current_proxy(gdata) || time(NULL) - proxi->reconnect_time > 30)) { LOGWARNING("Proxy %d:%s recovered", proxi->id, proxi->si->url); proxi->reconnect_time = 0; send_proc(ckp->generator, "reconnect");