Set cURL connect timeout to 30 seconds (300 is too long)
This commit is contained in:
@@ -75,6 +75,7 @@ public:
|
||||
curl_easy_setopt(mHandle, CURLOPT_HEADERDATA, (void *)this);
|
||||
|
||||
curl_easy_setopt(mHandle, CURLOPT_NOPROGRESS, 0);
|
||||
curl_easy_setopt(mHandle, CURLOPT_CONNECTTIMEOUT, 30);
|
||||
|
||||
if (r.followRedirects)
|
||||
curl_easy_setopt(mHandle, CURLOPT_FOLLOWLOCATION, 1);
|
||||
|
||||
@@ -336,6 +336,7 @@ class URLLoader {
|
||||
CURLEasy.setopt(__curl, SSL_VERIFYPEER, false);
|
||||
CURLEasy.setopt(__curl, SSL_VERIFYHOST, false);
|
||||
CURLEasy.setopt(__curl, USERAGENT, "libcurl-agent/1.0");
|
||||
CURLEasy.setopt(__curl, CONNECTTIMEOUT, 30);
|
||||
|
||||
var result = CURLEasy.perform(__curl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user