You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/30 13:31:16 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #2414: net/tcp: implement the fast retransmit

xiaoxiang781216 commented on a change in pull request #2414:
URL: https://github.com/apache/incubator-nuttx/pull/2414#discussion_r532593041



##########
File path: net/tcp/tcp_send_buffered.c
##########
@@ -484,6 +485,28 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev,
                         wrb, TCP_WBSEQNO(wrb), TCP_WBPKTLEN(wrb));
                 }
             }
+          else if (ackno == TCP_WBSEQNO(wrb))
+            {
+              /* Duplicate ACK? Retransmit data if need */
+
+              TCP_WBNACK(wrb)++;
+
+              if (TCP_WBNACK(wrb) ==

Review comment:
       merge line 492 to here




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org