From 4cd554a23817605fd8d3562cac7cb9dd767abd02 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Feb 2015 22:48:21 +1100 Subject: [PATCH] Set the reconnect time on a proxy when a read socket detects a disconnection --- src/generator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generator.c b/src/generator.c index 8bd3ea57..7ab04a84 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1851,6 +1851,7 @@ static void *proxy_recv(void *arg) } if (ret < 1) { if (parent_proxy(subproxy)) { + proxi->reconnect_time = time(NULL); alive = false; LOGWARNING("Proxy %d:%s failed to epoll/read_socket_line in proxy_recv, attempting reconnect", subproxy->id, subproxy->si->url);