From dd4d74e5efcb9b8be366b763fe4b7ef95c30d6d2 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 26 Feb 2013 19:24:07 +0100 Subject: [PATCH] [*] CORE: Dissasemble CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT in Tools::file_get_contents --- classes/Tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index 5a1fed65a..85dac07bb 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -1286,7 +1286,7 @@ class ToolsCore $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_URL, $url); - curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $curl_timeout); + curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($curl, CURLOPT_TIMEOUT, $curl_timeout); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); $opts = stream_context_get_options($stream_context);