mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:57:27 +02:00
Merge branch 'atp' of https://github.com/birarda/hifi into protocol
This commit is contained in:
commit
d31c237cc3
2 changed files with 5 additions and 1 deletions
|
@ -440,3 +440,7 @@ void Connection::updateRTT(int rtt) {
|
|||
_rttVariance = (_rttVariance * (1 - RTT_ESTIMATION_VARIANCE_ALPHA_NUMERATOR)
|
||||
+ abs(rtt - _rtt)) / RTT_ESTIMATION_VARIANCE_ALPHA_NUMERATOR;
|
||||
}
|
||||
|
||||
int Connection::estimatedTimeout() const {
|
||||
return _congestionControl->_userDefinedRto ? _rtt + _rttVariance * 4 : _congestionControl->_rto;
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ private:
|
|||
|
||||
void updateRTT(int rtt);
|
||||
|
||||
int estimatedTimeout() const { return _rtt + _rttVariance * 4; }
|
||||
int estimatedTimeout() const;
|
||||
|
||||
int _synInterval; // Periodical Rate Control Interval, in microseconds, defaults to 10ms
|
||||
|
||||
|
|
Loading…
Reference in a new issue