From 8aff63c89be0c664dabfac4bd00d30c1fc267f64 Mon Sep 17 00:00:00 2001 From: itsvse Date: Tue, 10 Mar 2020 21:48:49 +0800 Subject: [PATCH] =?UTF-8?q?update=20upload/source/module/forum/forum=5Fatt?= =?UTF-8?q?achment.php.=20static=20$CHUNK=5FSIZE=20=3D=2064=20*=201024;=20?= =?UTF-8?q?=E8=BF=99=E6=A0=B7=E5=86=99=E4=BC=9A500=E9=94=99=E8=AF=AF?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=E9=99=84=E5=8A=A0=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/module/forum/forum_attachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/source/module/forum/forum_attachment.php b/upload/source/module/forum/forum_attachment.php index e2ab564df..354a3df62 100644 --- a/upload/source/module/forum/forum_attachment.php +++ b/upload/source/module/forum/forum_attachment.php @@ -333,7 +333,7 @@ function getlocalfile($filename, $readmod = 2, $range_start = 0, $range_end = 0) } function send_file_by_chunk($fp, $limit = PHP_INT_MAX) { - static $CHUNK_SIZE = 64 * 1024; // 每次最大读 64KB + static $CHUNK_SIZE = 65536; // 每次最大读 64KB $count = 0; while (!feof($fp)) { $size_to_read = $CHUNK_SIZE; -- Gitee