mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
socket: New option 'FlushPending' (boolean) to flush socket before entering listening state
Disabled by default. When Enabled, before listening on the socket, flush the content. Applies when Accept=no only.
This commit is contained in:
committed by
Lennart Poettering
parent
f77d6ec953
commit
3e5f04bf64
@@ -427,6 +427,18 @@
|
||||
false, in read-only mode. Defaults to false.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>FlushPending=</varname></term>
|
||||
<listitem><para>Takes a boolean argument. May only be used when
|
||||
<option>Accept=no</option>. If yes, the socket's buffers are cleared after the
|
||||
triggered service exited. This causes any pending data to be
|
||||
flushed and any pending incoming connections to be rejected. If no, the
|
||||
socket's buffers won't be cleared, permitting the service to handle any
|
||||
pending connections after restart, which is the usually expected behaviour.
|
||||
Defaults to <option>no</option>.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>MaxConnections=</varname></term>
|
||||
<listitem><para>The maximum number of connections to
|
||||
|
||||
Reference in New Issue
Block a user