|
@@ -4016,8 +4016,9 @@ retry_pool:
|
|
|
if (end.tv_sec - start.tv_sec > 30)
|
|
if (end.tv_sec - start.tv_sec > 30)
|
|
|
continue;
|
|
continue;
|
|
|
if (opt_retries == -1 || failures++ < opt_retries) {
|
|
if (opt_retries == -1 || failures++ < opt_retries) {
|
|
|
- applog(LOG_WARNING,
|
|
|
|
|
- "longpoll failed for %s, sleeping for 30s", pool->lp_url);
|
|
|
|
|
|
|
+ if (failures == 1)
|
|
|
|
|
+ applog(LOG_WARNING,
|
|
|
|
|
+ "longpoll failed for %s, retrying every 30s", pool->lp_url);
|
|
|
sleep(30);
|
|
sleep(30);
|
|
|
} else {
|
|
} else {
|
|
|
applog(LOG_ERR,
|
|
applog(LOG_ERR,
|
|
@@ -4119,7 +4120,8 @@ static void *watchpool_thread(void __maybe_unused *userdata)
|
|
|
for (i = 0; i < total_pools; i++) {
|
|
for (i = 0; i < total_pools; i++) {
|
|
|
struct pool *pool = pools[i];
|
|
struct pool *pool = pools[i];
|
|
|
|
|
|
|
|
- reap_curl(pool);
|
|
|
|
|
|
|
+ if (!opt_benchmark)
|
|
|
|
|
+ reap_curl(pool);
|
|
|
if (!pool->enabled)
|
|
if (!pool->enabled)
|
|
|
continue;
|
|
continue;
|
|
|
|
|
|