diff --git a/public/include/classes/tools.class.php b/public/include/classes/tools.class.php index e00b370b..8778a200 100644 --- a/public/include/classes/tools.class.php +++ b/public/include/classes/tools.class.php @@ -19,6 +19,8 @@ class Tools extends Base { static $ch = null; if (is_null($ch)) { $ch = curl_init(); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); + curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; PHP client; '.php_uname('s').'; PHP/'.phpversion().')'); }