Browse Source

Sort out alive message and reconnect in passthrough_recv

master
Con Kolivas 9 years ago
parent
commit
a129d4c579
  1. 7
      src/generator.c

7
src/generator.c

@ -1908,12 +1908,13 @@ static void *passthrough_recv(void *arg)
int ret; int ret;
while (!proxy_alive(ckp, proxi, cs, true)) { while (!proxy_alive(ckp, proxi, cs, true)) {
if (alive) {
alive = false; alive = false;
reconnect_generator(ckp);
}
sleep(5); sleep(5);
} }
if (!alive) {
reconnect_generator(ckp);
alive = true;
}
/* Make sure we receive a line within 90 seconds */ /* Make sure we receive a line within 90 seconds */
ret = read_socket_line(cs, &timeout); ret = read_socket_line(cs, &timeout);

Loading…
Cancel
Save