aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/HttpUtils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-11-11 16:49:57 +0100
committerArthurHoaro <arthur@hoa.ro>2017-11-11 16:49:57 +0100
commit91c807d2755ac65ec7b06560f25ca3c6ed4a8417 (patch)
tree1009612a0238e7b9a66f7a234398426bd13fae96 /application/HttpUtils.php
parent488786d3e4e113ef93f5dcddf86315480d2ae5c1 (diff)
downloadShaarli-91c807d2755ac65ec7b06560f25ca3c6ed4a8417.tar.gz
Shaarli-91c807d2755ac65ec7b06560f25ca3c6ed4a8417.tar.zst
Shaarli-91c807d2755ac65ec7b06560f25ca3c6ed4a8417.zip
Increase buffer size for cURL download
1kB chunk size has caused me a lot of trouble with Travis which wasn't completing the download
Diffstat (limited to 'application/HttpUtils.php')
-rw-r--r--application/HttpUtils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/HttpUtils.php b/application/HttpUtils.php
index 00835966..ec54dcd4 100644
--- a/application/HttpUtils.php
+++ b/application/HttpUtils.php
@@ -76,7 +76,7 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304)
76 curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); 76 curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
77 77
78 // Max download size management 78 // Max download size management
79 curl_setopt($ch, CURLOPT_BUFFERSIZE, 1024); 79 curl_setopt($ch, CURLOPT_BUFFERSIZE, 1024*16);
80 curl_setopt($ch, CURLOPT_NOPROGRESS, false); 80 curl_setopt($ch, CURLOPT_NOPROGRESS, false);
81 curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, 81 curl_setopt($ch, CURLOPT_PROGRESSFUNCTION,
82 function($arg0, $arg1, $arg2, $arg3, $arg4 = 0) use ($maxBytes) 82 function($arg0, $arg1, $arg2, $arg3, $arg4 = 0) use ($maxBytes)