Browse Source

stream in 100k chunks

George S. Baugh 5 years ago
parent
commit
fe92267472
1 changed files with 1 additions and 3 deletions
  1. 1 3
      www/server.psgi

+ 1 - 3
www/server.psgi

@@ -164,9 +164,7 @@ sub _serve ($path, $streaming=0, $last_fetch=0) {
 		return sub {
 			my $responder = shift;
 			my $writer = $responder->([ $code, [$h]]);
-			my $it = 10000;
-            $fh->autoflush(1);
-			while ( read($fh, my $buf, $it) ) {
+			while ( read($fh, my $buf, 102400) ) {
 				$writer->write($buf);
 			}
 			close $fh;