Browse Source

Decrease failback time to 30 seconds on proxy

master
Con Kolivas 10 years ago
parent
commit
ffdac57b0e
  1. 4
      src/generator.c

4
src/generator.c

@ -1753,9 +1753,9 @@ static void *proxy_recv(void *arg)
sleep(5); sleep(5);
proxi->reconnect_time = time(NULL); 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. */ * 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); LOGWARNING("Proxy %d:%s recovered", proxi->id, proxi->si->url);
proxi->reconnect_time = 0; proxi->reconnect_time = 0;
send_proc(ckp->generator, "reconnect"); send_proc(ckp->generator, "reconnect");

Loading…
Cancel
Save