public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* man/man7/tcp.7: Document effect of TCP_DEFER_ACCEPT on clientsocket
@ 2026-03-12 22:25 Ran Benita
  2026-03-12 23:38 ` Alejandro Colomar
  2026-03-13  9:26 ` [PATCH v2] man/man7/tcp.7: Document effect of TCP_DEFER_ACCEPT on client socket Ran Benita
  0 siblings, 2 replies; 4+ messages in thread
From: Ran Benita @ 2026-03-12 22:25 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

TCP_DEFER_ACCEPT has an interesting little-known effect on client
sockets. I don't think it's very useful but should still be documented.

See here for reference:
<https://elixir.bootlin.com/linux/v6.19.6/source/net/ipv4/tcp_input.c#L6781-L6796>

Signed-off-by: Ran Benita <ran@unusedvar.com>
---
man/man7/tcp.7 | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/man/man7/tcp.7 b/man/man7/tcp.7
index adfd6623e..85f6c631c 100644
--- a/man/man7/tcp.7
+++ b/man/man7/tcp.7
@@ -1091,6 +1091,11 @@ Allow a listener to be awakened only when data arrives on the socket.
Takes an integer value (seconds), this can
bound the maximum number of attempts TCP will make to
complete the connection.
+.IP
+On a client socket, if non-zero, delays sending the final ACK of the three-way
+handshake until the socket has data to send, in which case the ACK is
+piggybacked on the first data segment, or a delayed-ACK timeout is reached.
+.IP
This option should not be used in code intended to be portable.
.TP
.BR TCP_INFO " (since Linux 2.4)"
-- 
2.53.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-16  0:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12 22:25 man/man7/tcp.7: Document effect of TCP_DEFER_ACCEPT on clientsocket Ran Benita
2026-03-12 23:38 ` Alejandro Colomar
2026-03-13  9:26 ` [PATCH v2] man/man7/tcp.7: Document effect of TCP_DEFER_ACCEPT on client socket Ran Benita
2026-03-16  0:10   ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox