]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/check-www-inbox: don't follow mboxes
authorEric Wong <e@80x24.org>
Tue, 29 Jan 2019 03:37:24 +0000 (03:37 +0000)
committerEric Wong <e@80x24.org>
Tue, 29 Jan 2019 21:36:02 +0000 (21:36 +0000)
They can be extremely large with no limit, so can lead to OOM
errors.

t/check-www-inbox.perl

index 933362a75ab4e07a9316a94ffa0a0437ff6244c8..0a6d61bb5997a2fafbb19ef2dfd56386d3f103c3 100644 (file)
@@ -175,7 +175,7 @@ sub worker_loop {
                my $s;
                # blocking
                foreach my $l (@links, "DONE\t$u") {
-                       next if $l eq '';
+                       next if $l eq '' || $l =~ /\.mbox(?:\.gz)\z/;
                        do {
                                $s = $done_wr->send($l, MSG_EOR);
                        } while (!defined $s && $!{EINTR});