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 073e69b26a6d355f04902587692fb962b0145a6f
Author: raiden00pl <[email protected]>
AuthorDate: Thu Oct 22 14:03:21 2026 +0200

    net/sixlowpan: rewind the unacknowledged TCP bytes on a retransmission
    
    A retransmission resends from the last acknowledged byte, but the
    rewound bytes stayed in tx_unacked and were counted again when resent.
    
    Assisted-by: Claude Code
    Signed-off-by: raiden00pl <[email protected]>
---
 net/sixlowpan/sixlowpan_tcpsend.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/sixlowpan/sixlowpan_tcpsend.c 
b/net/sixlowpan/sixlowpan_tcpsend.c
index 57069ad883c..91b6daddc2f 100644
--- a/net/sixlowpan/sixlowpan_tcpsend.c
+++ b/net/sixlowpan/sixlowpan_tcpsend.c
@@ -342,7 +342,8 @@ static uint32_t tcp_send_eventhandler(FAR struct 
net_driver_s *dev,
        * to the number of bytes that have been ACKed.
        */
 
-      sinfo->s_sent = sinfo->s_acked;
+      sinfo->s_sent    = sinfo->s_acked;
+      conn->tx_unacked = 0;
 
       /* Fall through to re-send data from the last that was ACKed */
     }

Reply via email to