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
@ -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…
Reference in New Issue
Block a user