mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 03:13:09 +02:00
force duplicated sends to use highest RTT, not lowest
This commit is contained in:
parent
d15cb6171d
commit
ef660722cd
1 changed files with 3 additions and 2 deletions
|
@ -71,7 +71,6 @@ bool TCPVegasCC::onACK(SequenceNumber ack, p_high_resolution_clock::time_point r
|
|||
|
||||
// remove this sent packet time from the hash
|
||||
_sentPacketTimes.erase(it);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -224,6 +223,8 @@ void TCPVegasCC::performRenoCongestionAvoidance(SequenceNumber ack) {
|
|||
}
|
||||
|
||||
void TCPVegasCC::onPacketSent(int packetSize, SequenceNumber seqNum, p_high_resolution_clock::time_point timePoint) {
|
||||
_sentPacketTimes[seqNum] = { timePoint, packetSize };
|
||||
if (_sentPacketTimes.find(seqNum) == _sentPacketTimes.end()) {
|
||||
_sentPacketTimes[seqNum] = { timePoint, packetSize };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue