From 60cc26ffbd3d0b0e16db3d358cc728223906ba4f Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev <4426533+rostovtsev@users.noreply.github.com> Date: Tue, 19 Mar 2019 11:16:18 +0300 Subject: [PATCH] Increase buffer size (support for 1Gbps networks) --- filemin/download.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filemin/download.cgi b/filemin/download.cgi index 68fee2ce9..8d1e11910 100755 --- a/filemin/download.cgi +++ b/filemin/download.cgi @@ -26,7 +26,7 @@ print "Content-Disposition: attachment; filename=\"$name$ext\"\n"; print "Content-Length: $size\n\n"; open (FILE, "< $file") or die "can't open $file: $!"; binmode FILE; -local $/ = \102400; +local $/ = \2048000; while () { print $_; }