Re: TCP_DEFER_ACCEPT documentation should be more precise about rounding to retransmits

Alejandro Colomar
2026-04-15T21:19:08Z

[-- 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 --]