Browse Source

Sort out alive message and reconnect in passthrough_recv

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

9
src/generator.c

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

Loading…
Cancel
Save