Browse Source

Some networks can take a long time to resolve so go back to 60 second timeouts instead of 15.

ckolivas 14 years ago
parent
commit
c86a670ce6
1 changed files with 1 additions and 7 deletions
  1. 1 7
      util.c

+ 1 - 7
util.c

@@ -319,13 +319,7 @@ json_t *json_rpc_call(CURL *curl, const char *url,
 	struct header_info hi = { };
 	struct header_info hi = { };
 	bool probing = false;
 	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);
 	curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout);
 
 
 #if 0 /* Disable curl debugging since it spews to stderr */
 #if 0 /* Disable curl debugging since it spews to stderr */