mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
socket: bump listen() backlog to INT_MAX everywhere
This is a rework of #24764 by Cristian Rodríguez <crodriguez@owncloud.com>, which stalled. Instead of assigning -1 we'll use a macro defined to INT_MAX however.
This commit is contained in:
@@ -341,12 +341,13 @@
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>Backlog=</varname></term>
|
||||
<listitem><para>Takes an unsigned integer argument. Specifies
|
||||
the number of connections to queue that have not been accepted
|
||||
yet. This setting matters only for stream and sequential
|
||||
packet sockets. See
|
||||
<citerefentry><refentrytitle>listen</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
||||
for details. Defaults to SOMAXCONN (128).</para></listitem>
|
||||
<listitem><para>Takes an unsigned 32bit integer argument. Specifies the number of connections to
|
||||
queue that have not been accepted yet. This setting matters only for stream and sequential packet
|
||||
sockets. See
|
||||
<citerefentry><refentrytitle>listen</refentrytitle><manvolnum>2</manvolnum></citerefentry> for
|
||||
details. Note that this value is silently capped by the <literal>net.core.somaxconn</literal> sysctl,
|
||||
which typically defaults to 4096. By default this is set to 4294967295, so that the sysctl takes full
|
||||
effect.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user