diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-19 18:54:10 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-19 18:54:10 +1000 |
| commit | e45ffb8592cacecb90443dc77f09f9a9823a029f (patch) | |
| tree | c8e62e181aa313cd5f19dd179d3790648d7c42b2 /post.php | |
| parent | c8fcba943958f736582838591f5632cb214e0f15 (diff) | |
custom timeouet for curl'ing upload urls
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
