Browse Source

Only give read socket line warning if proxy was considered alive at the time

master
Con Kolivas 10 years ago
parent
commit
8825c7c901
  1. 6
      src/generator.c

6
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)) {

Loading…
Cancel
Save