yamt commented on a change in pull request #2414:
URL: https://github.com/apache/incubator-nuttx/pull/2414#discussion_r673617283
##########
File path: net/tcp/tcp_send_buffered.c
##########
@@ -484,6 +485,26 @@ 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 */
+
+ if (++TCP_WBNACK(wrb) ==
+ CONFIG_NET_TCP_FAST_RETRANSMIT_WATERMARK)
+ {
+ /* Do fast retransmit */
+
+ rexmit = true;
+ }
+ else if ((TCP_WBNACK(wrb) >
+ CONFIG_NET_TCP_FAST_RETRANSMIT_WATERMARK) &&
+ TCP_WBNACK(wrb) == sq_count(&conn->unacked_q) - 1)
Review comment:
what does "TCP_WBNACK(wrb) == sq_count(&conn->unacked_q) - 1" mean?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]