diff --git a/src/system/httptool.cpp b/src/system/httptool.cpp index 8be1e838b..de17a1c0c 100644 --- a/src/system/httptool.cpp +++ b/src/system/httptool.cpp @@ -91,6 +91,7 @@ printf("url is %s\n", URL.c_str()); curl_easy_setopt(curl, CURLOPT_USERAGENT, userAgent.c_str()); curl_easy_setopt(curl, CURLOPT_NOSIGNAL, (long)1); curl_easy_setopt(curl, CURLOPT_TIMEOUT, 1800); + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10); #ifdef DEBUG curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); #endif