]> git.wh0rd.org - tt-rss.git/commitdiff
af_unburn: set timeout properly (refs #540)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Feb 2013 18:27:35 +0000 (22:27 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Feb 2013 18:27:35 +0000 (22:27 +0400)
plugins/af_unburn/init.php

index d09e2ad3615ec07ceda44d9b9db9c5c34a1b9035..0cf945f8d104369f19117e6132c39406100c2d1b 100644 (file)
@@ -29,7 +29,7 @@ class Af_Unburn extends Plugin {
                        strpos($article["plugin_data"], "unburn,$owner_uid:") === FALSE) {
 
                        $ch = curl_init($article["link"]);
-                       curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
+                       curl_setopt($ch, CURLOPT_TIMEOUT, 5);
                        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                        curl_setopt($ch, CURLOPT_HEADER, true);
                        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);