mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
tcp: reset conn->nrtx when ack received
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>
This commit is contained in:
committed by
Petro Karashchenko
parent
14fb56c799
commit
e03c2c321a
@@ -773,6 +773,7 @@ found:
|
||||
tcp_getsequence(conn->sndseq), ackseq, unackseq,
|
||||
(uint32_t)conn->tx_unacked);
|
||||
tcp_setsequence(conn->sndseq, ackseq);
|
||||
conn->nrtx = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user