mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00: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:
parent
14fb56c799
commit
e03c2c321a
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue