diff --git a/src/generator.c b/src/generator.c index fecf0895..3a769e14 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1794,10 +1794,11 @@ static void *proxy_recv(void *arg) ret = read_socket_line(cs, 5); } if (ret < 1) { - if (alive) { + if (alive && parent_proxy(subproxy)) { alive = false; LOGWARNING("Proxy %d:%s failed to epoll/read_socket_line in proxy_recv, attempting reconnect", subproxy->id, subproxy->si->url); + send_proc(ckp->generator, "reconnect"); } continue; }