diff --git a/lib/HTTPCurl.php b/lib/HTTPCurl.php index 7ecfad4..5e72b15 100644 --- a/lib/HTTPCurl.php +++ b/lib/HTTPCurl.php @@ -73,6 +73,7 @@ class HTTPCurl { } curl_setopt($ch, CURLOPT_TIMEOUT_MS, round($this->timeout * 1000)); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); } public static function error_string_from_code($code) {