From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6B6D52141C for ; Wed, 30 Jan 2019 04:44:31 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 03/11] t/check-www-inbox: don't follow mboxes Date: Wed, 30 Jan 2019 04:44:22 +0000 Message-Id: <20190130044430.28189-4-e@80x24.org> In-Reply-To: <20190130044430.28189-1-e@80x24.org> References: <20190130044430.28189-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: They can be extremely large with no limit, so can lead to OOM errors. --- t/check-www-inbox.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/check-www-inbox.perl b/t/check-www-inbox.perl index 933362a..0a6d61b 100644 --- a/t/check-www-inbox.perl +++ b/t/check-www-inbox.perl @@ -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}); -- EW