]> source.dussan.org Git - nextcloud-server.git/commitdiff
Increase max read
authorScott Dutton <exussum12@users.noreply.github.com>
Fri, 30 Aug 2019 22:49:23 +0000 (23:49 +0100)
committerScott Dutton <scott@exussum.co.uk>
Sun, 12 Apr 2020 12:01:29 +0000 (13:01 +0100)
8kb is very low, especially given this will be local files

Signed-off-by: Scott Dutton <scott@exussum.co.uk>
lib/private/Files/View.php

index 20c0fd3ed1ba78550b9b97b1875a130a6b391fd3..a5f93b4b73cbcd2d1f241e36772aefb5277e2bb7 100644 (file)
@@ -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) {