From 1704bdb4aabdbc155eb962edf51498f59b65c839 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 22 Aug 2015 00:06:45 +0000 Subject: stream HTML views as much as possible This should allow progressive rendering on the client and reduce memory usage on the server. Unfortunately XML::Atom::SimpleFeed does not yet support streaming, so we may not use it in the future. --- lib/PublicInbox/Mbox.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/Mbox.pm') diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm index fcb26693..5f5612a4 100644 --- a/lib/PublicInbox/Mbox.pm +++ b/lib/PublicInbox/Mbox.pm @@ -80,6 +80,7 @@ The administrator needs to install the IO::Compress::Gzip Perl module to support gzipped mboxes. Return to index EOF + $fh->close; } 1; @@ -118,7 +119,7 @@ sub close { my ($self) = @_; $self->{gz}->close; _flush_buf($self); - # do not actually close $fh + $self->{fh}->close; } 1; -- cgit v1.2.3-24-ge0c7