about summary refs log tree commit homepage
path: root/lib/PublicInbox/Mbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-22 00:06:45 +0000
committerEric Wong <e@80x24.org>2015-08-22 01:57:35 +0000
commit1704bdb4aabdbc155eb962edf51498f59b65c839 (patch)
tree6f88e2d1662a99062b0ebd74d94f7bd7c0db56e6 /lib/PublicInbox/Mbox.pm
parent62395935e7bdd8e67776ebb9018f4633e67ff081 (diff)
downloadpublic-inbox-1704bdb4aabdbc155eb962edf51498f59b65c839.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox/Mbox.pm')
-rw-r--r--lib/PublicInbox/Mbox.pm3
1 files changed, 2 insertions, 1 deletions
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.
 <a href="../">Return to index</a></pre></body></html>
 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;