]> Sergey Matveev's repositories - public-inbox.git/commit
listener: maximize listen(2) backlog
authorEric Wong <e@80x24.org>
Wed, 28 Jul 2021 00:37:19 +0000 (00:37 +0000)
committerEric Wong <e@80x24.org>
Wed, 28 Jul 2021 05:16:34 +0000 (05:16 +0000)
commitf72e56e40eb41e720fb4dfefc4cd9a8e50971fe7
tree4e0a0685e594d2c28149d86aa3fd71085e77072d
parent88c67b2202295c73f8f682233304daf3867936df
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
lib/PublicInbox/Listener.pm