]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/check-www-inbox: disable history
authorEric Wong <e@80x24.org>
Tue, 29 Jan 2019 03:42:48 +0000 (03:42 +0000)
committerEric Wong <e@80x24.org>
Tue, 29 Jan 2019 21:36:02 +0000 (21:36 +0000)
WWW::Mechanize keeps an infinitely large stack, which was
leading to OOM errors on my system.

t/check-www-inbox.perl

index 0a6d61bb5997a2fafbb19ef2dfd56386d3f103c3..db292c5064a252b48c316b6e4d3d7d43a023a7b0 100644 (file)
@@ -151,6 +151,7 @@ sub worker_loop {
        $SIG{CHLD} = 'DEFAULT';
        my $m = WWW::Mechanize->new(autocheck => 0);
        my $cc = LWP::ConnCache->new;
+       $m->stack_depth(0); # no history
        $m->conn_cache($cc);
        while (1) {
                $todo_rd->recv(my $u, 65535, 0);