From 8825c7c901a3eb92d69c131066aa31f0040982ae Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 6 Feb 2015 22:42:41 +1100 Subject: [PATCH] Only give read socket line warning if proxy was considered alive at the time --- src/generator.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index c1286974..4e7d92c1 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1562,8 +1562,10 @@ static void *proxy_recv(void *arg) } while (ret == 0 && ++retries < 120); if (ret < 1) { - LOGWARNING("Proxy %d:%s failed to read_socket_line in proxy_recv, attempting reconnect", - proxi->id, proxi->si->url); + if (proxi->alive) { + LOGWARNING("Proxy %d:%s failed to read_socket_line in proxy_recv, attempting reconnect", + proxi->id, proxi->si->url); + } continue; } if (parse_method(proxi, cs->buf)) {