lib/PublicInbox/LeiXSearch.pm | 1 + diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index 95862306cd7a98beba3aca94659f17bd7bf3460a..5cf02136ba42ae012182e37f64892ce08a2ae26e 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -268,6 +268,7 @@ seek($cerr, $coff, SEEK_SET) or warn "seek(curl stderr): $!\n"; 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});