diff options
author | Eric Wong <e@80x24.org> | 2021-02-02 11:46:53 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-03 07:32:37 +0000 |
commit | c27867da3ad7025a30e923414343262b035ed133 (patch) | |
tree | 465d90ac7f47f0c60590daa576c0432d2e2c2f9e | |
parent | 35597221da323ec3471e58fba9f04aa6e3937737 (diff) | |
download | public-inbox-c27867da3ad7025a30e923414343262b035ed133.tar.gz |
We may have further URLs to read in that process, so ensure we don't end up having tail send stale data.
-rw-r--r-- | lib/PublicInbox/LeiXSearch.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index 95862306..5cf02136 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -268,6 +268,7 @@ sub query_remote_mboxrd { my $e = do { local $/; <$cerr> } // die "read(curl stderr): $!\n"; $coff += length($e); + truncate($cerr, 0); next if (($? >> 8) == 22 && $e =~ /\b404\b/); $lei->child_error($?); $uri->query_form(q => $lei->{mset_opt}->{qstr}); |