From: Scott Dutton Date: Fri, 30 Aug 2019 22:49:23 +0000 (+0100) Subject: Increase max read X-Git-Tag: v19.0.0beta5~37^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=75b99e85fff200a1fc88eb0b171fc8834a2f085e;p=nextcloud-server.git Increase max read 8kb is very low, especially given this will be local files Signed-off-by: Scott Dutton --- diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 20c0fd3ed1b..a5f93b4b73c 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -423,7 +423,7 @@ class View { @ob_end_clean(); $handle = $this->fopen($path, 'rb'); if ($handle) { - $chunkSize = 8192; // 8 kB chunks + $chunkSize = 512000; // 500 kB chunks while (!feof($handle)) { echo fread($handle, $chunkSize); flush(); @@ -447,7 +447,7 @@ class View { @ob_end_clean(); $handle = $this->fopen($path, 'rb'); if ($handle) { - $chunkSize = 8192; // 8 kB chunks + $chunkSize = 512000; // 500 kB chunks $startReading = true; if ($from !== 0 && $from !== '0' && fseek($handle, $from) !== 0) {