From 0d6fb758d698c9f0873c0d6a7338760c3d19db9b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 21 Sep 2015 16:18:24 +1000 Subject: [PATCH] Timeout should be updated on each loop in proxy_recv --- src/generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index 760f11e0..0336d257 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1290,8 +1290,8 @@ static void *proxy_recv(void *arg) /* If we don't get an update within 10 minutes the upstream pool * has likely stopped responding. */ - timeout = 10; do { + timeout = 10; if (cs->fd == -1) { ret = -1; break;