From 91c807d2755ac65ec7b06560f25ca3c6ed4a8417 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 11 Nov 2017 16:49:57 +0100 Subject: [PATCH] Increase buffer size for cURL download 1kB chunk size has caused me a lot of trouble with Travis which wasn't completing the download --- application/HttpUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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)