Browse Source

Make longpoll retry indefinitely to restart as well, or limited by opt_retries.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
47be27e86b
  1. 2
      main.c

2
main.c

@ -4573,7 +4573,7 @@ static void *longpoll_thread(void *userdata)
gettimeofday(&end, NULL); gettimeofday(&end, NULL);
if (end.tv_sec - start.tv_sec > 30) if (end.tv_sec - start.tv_sec > 30)
continue; continue;
if (failures++ < 10) { if (opt_retries == -1 || failures++ < opt_retries) {
sleep(30); sleep(30);
applog(LOG_WARNING, applog(LOG_WARNING,
"longpoll failed for %s, sleeping for 30s", lp_url); "longpoll failed for %s, sleeping for 30s", lp_url);

Loading…
Cancel
Save