]> git.wh0rd.org Git - tt-rss.git/commitdiff
force set curl timeouts
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Mar 2007 05:00:57 +0000 (06:00 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Mar 2007 05:00:57 +0000 (06:00 +0100)
functions.php

index 339a4ab4083aed103e945cf31923059af0fc7672..1501a871351e6e5353361baabdcb7a2f7b81e2d6 100644 (file)
 
                        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);