Commit 13fa5772adb75fd0a32bd0abe883e087492f8d25

ckolivas 2012-02-04T20:04:49

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/util.c b/util.c
index 62abb34..b68ba20 100644
--- a/util.c
+++ b/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 */
 
-	if (probe) {
+	if (probe)
 		probing = !pool->probed;
-		/* Probe for only 15 seconds */
-		timeout = 15;
-	}
 	curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout);
 
 #if 0 /* Disable curl debugging since it spews to stderr */