This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 940dbf53a06ca75ab68b9a1eef52decf5afa5228
Author: Marco Casaroli <[email protected]>
AuthorDate: Sat Nov 21 14:31:14 2026 +0100

    Documentation/os/networking: Describe the first SYN of connect().
    
    The first SYN of connect() goes out with the initial retransmission
    timeout and does not count as a retransmission.  NET_TCP_MAXSYNRTX
    limits the resends of the SYN.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 Documentation/os/networking/tcp_state_machine.rst | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/os/networking/tcp_state_machine.rst 
b/Documentation/os/networking/tcp_state_machine.rst
index 101650dc67e..1c221064fdf 100644
--- a/Documentation/os/networking/tcp_state_machine.rst
+++ b/Documentation/os/networking/tcp_state_machine.rst
@@ -331,6 +331,9 @@ Retransmission timer
 * At each expiry the timeout doubles (RFC 6298, section 5.5): the next timeout
        is the initial timeout (``NET_TCP_RTO``) times 2, 4, 8 and then 16.  
With
        ``NET_TCP_FIXED_RTO`` it does not change.
+* The first SYN of ``connect()`` is not a retransmission: it goes out with the
+       initial timeout and is not counted.  ``NET_TCP_MAXSYNRTX`` limits the
+       resends of the SYN, as ``NET_TCP_MAXRTX`` limits the resends of data.
 * A duplicate ACK carries no data (RFC 5681, section 2).  A segment with data
        that repeats the ACK number does not count toward a fast retransmission.
 

Reply via email to