From bf78bf1db403e4b3c30fef06f992d342ee36cc4b Mon Sep 17 00:00:00 2001 From: liqinhui Date: Sat, 16 Mar 2024 14:13:38 +0800 Subject: [PATCH] net/tcp: reset the dupack counter. After setting the retransmission flag, we need to set the dupack counter to 0. Signed-off-by: liqinhui --- net/tcp/tcp_send_buffered.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/tcp/tcp_send_buffered.c b/net/tcp/tcp_send_buffered.c index 18ae631abc..5ed0959a8f 100644 --- a/net/tcp/tcp_send_buffered.c +++ b/net/tcp/tcp_send_buffered.c @@ -629,6 +629,10 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev, #endif #endif } + +#ifdef CONFIG_NET_TCP_CC_NEWRENO + conn->dupacks = 0; +#endif } } }