]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
daemon: support backlog= listen parameter
authorEric Wong <e@80x24.org>
Tue, 8 Apr 2025 20:49:58 +0000 (20:49 +0000)
committerEric Wong <e@80x24.org>
Fri, 11 Apr 2025 08:40:39 +0000 (08:40 +0000)
commit5318e2fe0438521dca6ff45ba8c151114fc08679
tree015f84a5a320d9d396489b9a98bf60a9cb09a1cb
parent0785d75893590043963beb00dd9d11411a3f9c07
daemon: support backlog= listen parameter

For -netd instances using multiple listeners, it's easiest for me
to configure all ListenStream directives in a single
systemd.socket(5) unit.  Unfortunately, this seems to force all
listeners to use the same Backlog= value, and juggling
multiple systemd.socket(5) units for a single systemd service
seems tedious.

So support setting the backlog= parameter on the public-inbox-*d
command-line on a per-listener basis; allowing us to override
the backlog value of inherited listeners and also to set the
backlog for listeners we bind ourselves.  This makes it possible
for non-systemd users to easily configure per-listener backlogs,
as well.
Documentation/public-inbox-daemon.pod
Documentation/public-inbox-netd.pod
lib/PublicInbox/Daemon.pm
t/netd.t