af_unburn: set timeout properly (refs #540)

This commit is contained in:
Andrew Dolgov 2013-02-21 22:27:35 +04:00
parent b30abdadd2
commit 8055097ca2
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class Af_Unburn extends Plugin {
strpos($article["plugin_data"], "unburn,$owner_uid:") === FALSE) { strpos($article["plugin_data"], "unburn,$owner_uid:") === FALSE) {
$ch = curl_init($article["link"]); $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_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);