about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiXSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-29 07:08:24 +0000
committerEric Wong <e@80x24.org>2021-03-29 13:43:54 -0400
commita0ad0c832830ecd70d01dfba5f1bc81d4efcd950 (patch)
treef7ba55893f16f511b5bd4de115db52cca88552e7 /lib/PublicInbox/LeiXSearch.pm
parent64233e6d87994bdda47bfaaf154d55ad8d7802c2 (diff)
downloadpublic-inbox-a0ad0c832830ecd70d01dfba5f1bc81d4efcd950.tar.gz
This is compatible with default gunzip(1) behavior and
future-proofs us against potential changes in PublicInbox::WWW
to save memory on public-inbox-httpd instances.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r--lib/PublicInbox/LeiXSearch.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index 1a194f1c..f3b8cc25 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -272,7 +272,7 @@ sub query_remote_mboxrd {
                 $lei->qerr("# $cmd");
                 my ($fh, $pid) = popen_rd($cmd, undef, $rdr);
                 $reap_curl = PublicInbox::OnDestroy->new($sigint_reap, $pid);
-                $fh = IO::Uncompress::Gunzip->new($fh);
+                $fh = IO::Uncompress::Gunzip->new($fh, MultiStream => 1);
                 PublicInbox::MboxReader->mboxrd($fh, \&each_remote_eml, $self,
                                                 $lei, $each_smsg);
                 my $err = waitpid($pid, 0) == $pid ? undef