tcp_data_event: Add a comment

This commit is contained in:
YAMAMOTO Takashi 2021-05-28 17:44:13 +09:00 committed by Xiang Xiao
parent 70d215b11f
commit 7ac6c0a8de
1 changed files with 5 additions and 1 deletions

View File

@ -96,7 +96,11 @@ tcp_data_event(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
#ifdef CONFIG_NET_STATISTICS
g_netstats.tcp.drop++;
#endif
/* Clear the TCP_SNDACK bit so that no ACK will be sent */
/* Clear the TCP_SNDACK bit so that no ACK will be sent.
*
* Revisit: It might make more sense to send a dup ack
* to give a hint to the peer.
*/
ret &= ~TCP_SNDACK;
}