From c86a670ce6d264fba10a38f68d65e4b4ab27cba6 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Sat, 4 Feb 2012 13:06:04 +1100 Subject: [PATCH] Some networks can take a long time to resolve so go back to 60 second timeouts instead of 15. --- util.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/util.c b/util.c index 62abb34b..03ca034a 100644 --- a/util.c +++ b/util.c @@ -319,13 +319,7 @@ json_t *json_rpc_call(CURL *curl, const char *url, struct header_info hi = { }; bool probing = false; - /* it is assumed that 'curl' is freshly [re]initialized at this pt */ - - if (probe) { - probing = !pool->probed; - /* Probe for only 15 seconds */ - timeout = 15; - } + /* it is assumed that 'curl' is freshly [re]initialised at this pt */ curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout); #if 0 /* Disable curl debugging since it spews to stderr */