aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-11-26 11:34:44 +0100
committerGitHub <noreply@github.com>2017-11-26 11:34:44 +0100
commit877491b4ad0a6a9119e667901cef40cc56116901 (patch)
tree89bc15522c1b259d50c9019dd4e2f4868358df48 /application
parentd9514becc4d8b06e2a31c6975f3bbbaf6f1fed42 (diff)
parent91c807d2755ac65ec7b06560f25ca3c6ed4a8417 (diff)
downloadShaarli-877491b4ad0a6a9119e667901cef40cc56116901.tar.gz
Shaarli-877491b4ad0a6a9119e667901cef40cc56116901.tar.zst
Shaarli-877491b4ad0a6a9119e667901cef40cc56116901.zip
Merge pull request #1020 from ArthurHoaro/feature/curl-chunk
Increase buffer size for cURL download
Diffstat (limited to 'application')
-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)