]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Increase buffer size for cURL download 1020/head
authorArthurHoaro <arthur@hoa.ro>
Sat, 11 Nov 2017 15:49:57 +0000 (16:49 +0100)
committerArthurHoaro <arthur@hoa.ro>
Sat, 11 Nov 2017 15:49:57 +0000 (16:49 +0100)
1kB chunk size has caused me a lot of trouble with Travis which wasn't completing the download

application/HttpUtils.php

index 0083596643f510d4ea131fad9df25de215ff77ac..ec54dcd4faa78a92bd3fb6533b7c4f9a6b608776 100644 (file)
@@ -76,7 +76,7 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304)
     curl_setopt($ch, CURLOPT_USERAGENT,         $userAgent);
 
     // Max download size management
-    curl_setopt($ch, CURLOPT_BUFFERSIZE,        1024);
+    curl_setopt($ch, CURLOPT_BUFFERSIZE,        1024*16);
     curl_setopt($ch, CURLOPT_NOPROGRESS,        false);
     curl_setopt($ch, CURLOPT_PROGRESSFUNCTION,
         function($arg0, $arg1, $arg2, $arg3, $arg4 = 0) use ($maxBytes)