From f72e56e40eb41e720fb4dfefc4cd9a8e50971fe7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 28 Jul 2021 00:37:19 +0000 Subject: listener: maximize listen(2) backlog This helps avoid errors from script/lei dying on ECONNRESET when a single lei-daemon is serving all tests when run via "make check-run". Instead of using some arbitrary limit, use INT_MAX and let the kernel clamp it (both Linux and FreeBSD do). There's no need to call listen() in LEI.pm, either, since Listener->new takes care of it. --- lib/PublicInbox/LEI.pm | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/PublicInbox/LEI.pm') diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 0e6e9266..d9fd40fd 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1205,7 +1205,6 @@ sub lazy_start { } umask(077) // die("umask(077): $!"); bind($listener, $addr) or die "bind($path): $!"; - listen($listener, 1024) or die "listen: $!"; $lk->lock_release; undef $lk; my @st = stat($path) or die "stat($path): $!"; -- cgit v1.2.3-24-ge0c7