net/tcp: reset the dupack counter.

After setting the retransmission flag, we need to set the dupack counter to 0.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
liqinhui 2024-03-16 14:13:38 +08:00 committed by Xiang Xiao
parent eea5f98bca
commit bf78bf1db4
1 changed files with 4 additions and 0 deletions

View File

@ -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
}
}
}