about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-07-28 00:37:19 +0000
committerEric Wong <e@80x24.org>2021-07-28 05:16:34 +0000
commitf72e56e40eb41e720fb4dfefc4cd9a8e50971fe7 (patch)
tree4e0a0685e594d2c28149d86aa3fd71085e77072d /lib/PublicInbox/LEI.pm
parent88c67b2202295c73f8f682233304daf3867936df (diff)
downloadpublic-inbox-f72e56e40eb41e720fb4dfefc4cd9a8e50971fe7.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm1
1 files changed, 0 insertions, 1 deletions
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): $!";