Skip to content

Commit

Permalink
tcp: reset conn->nrtx when ack received
Browse files Browse the repository at this point in the history
Otherwise, when a long test triggers multiple timeout retransmissions,
the late timeout retransmissions are always delayed between 24 and 48 seconds

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
  • Loading branch information
zhhyu7 authored and pkarashchenko committed Aug 17, 2022
1 parent 14fb56c commit e03c2c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/tcp/tcp_input.c
Expand Up @@ -773,6 +773,7 @@ static void tcp_input(FAR struct net_driver_s *dev, uint8_t domain,
tcp_getsequence(conn->sndseq), ackseq, unackseq,
(uint32_t)conn->tx_unacked);
tcp_setsequence(conn->sndseq, ackseq);
conn->nrtx = 0;
}
}
#endif
Expand Down

0 comments on commit e03c2c3

Please sign in to comment.