From: Andrew Dolgov Date: Sat, 17 Mar 2007 05:00:57 +0000 (+0100) Subject: force set curl timeouts X-Git-Tag: 1.2.9~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=dd966fed31771d94783d2d738ea4294efb21efc6;p=tt-rss.git force set curl timeouts --- diff --git a/functions.php b/functions.php index 339a4ab4..1501a871 100644 --- a/functions.php +++ b/functions.php @@ -237,6 +237,8 @@ if ($fp) { curl_setopt($ch, CURLOPT_FILE, $fp); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15); + curl_setopt($ch, CURLOPT_TIMEOUT, 45); curl_exec($ch); curl_close($ch); fclose($fp);