From 48f24223b81fa93b2455334740b63a69ced138f8 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 29 Oct 2012 12:35:21 +1100 Subject: [PATCH] Shorten the initiate stratum connect timeout to 30 seconds. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 58e65d32..02de1730 100644 --- a/util.c +++ b/util.c @@ -1341,7 +1341,7 @@ bool initiate_stratum(struct pool *pool) sprintf(s, "http://%s:%s", pool->sockaddr_url, pool->stratum_port); curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 1); - curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 60); + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 30); curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_err_str); curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(curl, CURLOPT_URL, s);