From e45ffb8592cacecb90443dc77f09f9a9823a029f Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Mon, 19 Aug 2013 18:54:10 +1000 Subject: custom timeouet for curl'ing upload urls --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'post.php') diff --git a/post.php b/post.php index 02d97e24..df7fe435 100644 --- a/post.php +++ b/post.php @@ -291,7 +291,7 @@ if (isset($_POST['delete'])) { curl_setopt($curl, CURLOPT_FAILONERROR, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5); - curl_setopt($curl, CURLOPT_TIMEOUT, 15); + curl_setopt($curl, CURLOPT_TIMEOUT, $config['upload_by_url_timeout']); curl_setopt($curl, CURLOPT_USERAGENT, 'Tinyboard'); curl_setopt($curl, CURLOPT_BINARYTRANSFER, true); curl_setopt($curl, CURLOPT_FILE, $fp); -- cgit v1.3