mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 03:54:09 +02:00
fix for min NAK interval in Connection
This commit is contained in:
parent
925cb4bd56
commit
4b21581b36
1 changed files with 1 additions and 3 deletions
|
@ -300,8 +300,6 @@ bool Connection::processReceivedSequenceNumber(SequenceNumber sequenceNumber, in
|
|||
sendNAK(sequenceNumber);
|
||||
|
||||
// figure out when we should send the next loss report, if we haven't heard anything back
|
||||
_nakInterval = (_rtt + 4 * _rttVariance);
|
||||
|
||||
int receivedPacketsPerSecond = _receiveWindow.getPacketReceiveSpeed();
|
||||
|
||||
if (receivedPacketsPerSecond > 0) {
|
||||
|
@ -582,7 +580,7 @@ void Connection::updateRTT(int rtt) {
|
|||
}
|
||||
|
||||
int Connection::estimatedTimeout() const {
|
||||
return _congestionControl->_userDefinedRto ? _rtt + _rttVariance * 4 : _congestionControl->_rto;
|
||||
return _congestionControl->_userDefinedRto ? _congestionControl->_rto : _rtt + _rttVariance * 4;
|
||||
}
|
||||
|
||||
void Connection::updateCongestionControlAndSendQueue(std::function<void ()> congestionCallback) {
|
||||
|
|
Loading…
Reference in a new issue