* TCP_DEFER_ACCEPT documentation should be more precise about rounding to retransmits
@ 2026-04-14 17:06 Josh Triplett
2026-04-15 21:19 ` Alejandro Colomar
0 siblings, 1 reply; 3+ messages in thread
From: Josh Triplett @ 2026-04-14 17:06 UTC (permalink / raw)
To: linux-man
`tcp(7)` says:
> Takes an integer value (seconds), this can bound the maximum number of attempts TCP will make to complete the connection.
However, it doesn't say *how* it bounds the attempts. From the kernel
code, it appears to round up to the first retransmit time that's larger
than the specified bound. Could the manpage please document this?
(Discovered when adding Rust bindings to this, and trying to figure out
and document the rounding behavior.)
- Josh Triplett
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: TCP_DEFER_ACCEPT documentation should be more precise about rounding to retransmits
2026-04-14 17:06 TCP_DEFER_ACCEPT documentation should be more precise about rounding to retransmits Josh Triplett
@ 2026-04-15 21:19 ` Alejandro Colomar
2026-04-16 21:57 ` [PATCH] Document TCP_DEFER_ACCEPT rounding Josh Triplett
0 siblings, 1 reply; 3+ messages in thread
From: Alejandro Colomar @ 2026-04-15 21:19 UTC (permalink / raw)
To: Josh Triplett; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 722 bytes --]
Hi Josh,
On 2026-04-14T10:06:17-0700, Josh Triplett wrote:
> `tcp(7)` says:
> > Takes an integer value (seconds), this can bound the maximum number of attempts TCP will make to complete the connection.
>
> However, it doesn't say *how* it bounds the attempts. From the kernel
> code, it appears to round up to the first retransmit time that's larger
> than the specified bound. Could the manpage please document this?
Would you mind sending a patch? (And if appropriate, CC someone.)
Have a lovely night!
Alex
>
> (Discovered when adding Rust bindings to this, and trying to figure out
> and document the rounding behavior.)
>
> - Josh Triplett
>
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Document TCP_DEFER_ACCEPT rounding
2026-04-15 21:19 ` Alejandro Colomar
@ 2026-04-16 21:57 ` Josh Triplett
0 siblings, 0 replies; 3+ messages in thread
From: Josh Triplett @ 2026-04-16 21:57 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-man, netdev
[-- Attachment #1: Type: text/plain, Size: 15 bytes --]
Patch attached.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Document-TCP_DEFER_ACCEPT-rounding.patch --]
[-- Type: text/x-patch; name="0001-Document-TCP_DEFER_ACCEPT-rounding.patch", Size: 885 bytes --]
From ad2b798376326d40944f6998270a755f61c57815 Mon Sep 17 00:00:00 2001
Message-ID: <ad2b798376326d40944f6998270a755f61c57815.1776374539.git.josh@joshtriplett.org>
From: Josh Triplett <josh@joshtriplett.org>
Date: Thu, 16 Apr 2026 14:21:34 -0700
Subject: [PATCH] Document `TCP_DEFER_ACCEPT` rounding
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---
man/man7/tcp.7 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/man/man7/tcp.7 b/man/man7/tcp.7
index ff46ea7bc..26a99b879 100644
--- a/man/man7/tcp.7
+++ b/man/man7/tcp.7
@@ -1091,6 +1091,8 @@ 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.
+The kernel will round this value up to the next larger TCP retransmit
+duration.
.IP
On a client socket,
if nonzero,
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-16 21:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14 17:06 TCP_DEFER_ACCEPT documentation should be more precise about rounding to retransmits Josh Triplett
2026-04-15 21:19 ` Alejandro Colomar
2026-04-16 21:57 ` [PATCH] Document TCP_DEFER_ACCEPT rounding Josh Triplett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox