From: Andrew Dolgov Date: Thu, 21 Feb 2013 18:27:35 +0000 (+0400) Subject: af_unburn: set timeout properly (refs #540) X-Git-Tag: 1.7.1~60 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8055097ca202182b37078aaf4376f57e23fcfe61;p=tt-rss.git af_unburn: set timeout properly (refs #540) --- diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php index d09e2ad3..0cf945f8 100644 --- a/plugins/af_unburn/init.php +++ b/plugins/af_unburn/init.php @@ -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);