Increase max read

8kb is very low, especially given this will be local files

Signed-off-by: Scott Dutton <scott@exussum.co.uk>
This commit is contained in:
Scott Dutton 2019-08-30 23:49:23 +01:00 committed by Scott Dutton
parent 8924214299
commit 75b99e85ff
No known key found for this signature in database
GPG Key ID: 328D9E8C1239A3C8
1 changed files with 2 additions and 2 deletions

View 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) {