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:
zhanghongyu 2022-07-26 14:03:48 +08:00 committed by Petro Karashchenko
parent 14fb56c799
commit e03c2c321a

View File

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