about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/LeiRemote.pm2
-rw-r--r--lib/PublicInbox/LeiXSearch.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiRemote.pm b/lib/PublicInbox/LeiRemote.pm
index 399fc936..945d9990 100644
--- a/lib/PublicInbox/LeiRemote.pm
+++ b/lib/PublicInbox/LeiRemote.pm
@@ -50,7 +50,7 @@ sub mset {
         my ($fh, $pid) = popen_rd($cmd, undef, $rdr);
         my $reap = PublicInbox::OnDestroy->new($lei->can('sigint_reap'), $pid);
         $self->{smsg} = [];
-        $fh = IO::Uncompress::Gunzip->new($fh);
+        $fh = IO::Uncompress::Gunzip->new($fh, MultiStream => 1);
         PublicInbox::MboxReader->mboxrd($fh, \&_each_mboxrd_eml, $self);
         my $err = waitpid($pid, 0) == $pid ? undef
                                         : "BUG: waitpid($cmd): $!";
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