From 22c9d7c3931f78e9b7c90104f9634224a5de6f25 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 25 Sep 2014 22:51:17 +1000 Subject: [PATCH] Wait up to 10 minutes for a response in proxy mode for p2pool which does not send an update regularly --- src/generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index c94cfccc..748d6f05 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1149,7 +1149,7 @@ static void *proxy_recv(void *arg) } mutex_unlock(&proxi->share_lock); - /* If we don't get an update within 2 minutes the upstream pool + /* If we don't get an update within 10 minutes the upstream pool * has likely stopped responding. */ do { if (cs->fd == -1) { @@ -1157,7 +1157,7 @@ static void *proxy_recv(void *arg) break; } ret = read_socket_line(cs, 5); - } while (ret == 0 && ++retries < 24); + } while (ret == 0 && ++retries < 120); if (ret < 1) { /* Send ourselves a reconnect message */