Browse Source

Probe but don't set the timeout to 15 seconds as some networks take a long time to timeout.

ckolivas 14 years ago
parent
commit
13fa5772ad
1 changed files with 1 additions and 4 deletions
  1. 1 4
      util.c

+ 1 - 4
util.c

@@ -321,11 +321,8 @@ json_t *json_rpc_call(CURL *curl, const char *url,
 
 
 	/* it is assumed that 'curl' is freshly [re]initialized at this pt */
 	/* it is assumed that 'curl' is freshly [re]initialized at this pt */
 
 
-	if (probe) {
+	if (probe)
 		probing = !pool->probed;
 		probing = !pool->probed;
-		/* Probe for only 15 seconds */
-		timeout = 15;
-	}
 	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 */