X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=include%2Ffunctions.php;h=e2a2282d51801dcfa31c79fc9a49106a91ac9122;hb=3f44977129ef0ab3c6233dc94d8c46ca2fa039f0;hp=5fe5c5a6584a08068fb9575bc085bc8a1f353e7d;hpb=c050148df4b81eca3c0e1110b94a649e9b56f9b0;p=tt-rss.git diff --git a/include/functions.php b/include/functions.php index 5fe5c5a6..e2a2282d 100644 --- a/include/functions.php +++ b/include/functions.php @@ -307,8 +307,8 @@ array("If-Modified-Since: ".gmdate('D, d M Y H:i:s \G\M\T', $timestamp))); } - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout ? $timeout : 15); - curl_setopt($ch, CURLOPT_TIMEOUT, $timeout ? $timeout : 45); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout ? $timeout : FILE_FETCH_CONNECT_TIMEOUT); + curl_setopt($ch, CURLOPT_TIMEOUT, $timeout ? $timeout : FILE_FETCH_TIMEOUT); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("safe_mode")); curl_setopt($ch, CURLOPT_MAXREDIRS, 20); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);