mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +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,
|
tcp_getsequence(conn->sndseq), ackseq, unackseq,
|
||||||
(uint32_t)conn->tx_unacked);
|
(uint32_t)conn->tx_unacked);
|
||||||
tcp_setsequence(conn->sndseq, ackseq);
|
tcp_setsequence(conn->sndseq, ackseq);
|
||||||
|
conn->nrtx = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user