fix capitalization of RTO for CongestionControl

This commit is contained in:
Stephen Birarda 2015-08-10 10:13:50 -07:00
parent 6d9504935d
commit eb17ddc04f
2 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@ public:
protected: protected:
void setAckInterval(int ackInterval) { _ackInterval = ackInterval; } void setAckInterval(int ackInterval) { _ackInterval = ackInterval; }
void setRto(int rto) { _userDefinedRto = true; _rto = rto; } void setRTO(int rto) { _userDefinedRTO = true; _rto = rto; }
void setMSS(int mss) { _mss = mss; } void setMSS(int mss) { _mss = mss; }
void setMaxCongestionWindowSize(int window) { _maxCongestionWindowSize = window; } void setMaxCongestionWindowSize(int window) { _maxCongestionWindowSize = window; }
@ -74,7 +74,7 @@ private:
int _synInterval { DEFAULT_SYN_INTERVAL }; int _synInterval { DEFAULT_SYN_INTERVAL };
bool _userDefinedRto { false }; // if the RTO value is defined by users bool _userDefinedRTO { false }; // if the RTO value is defined by users
int _rto { -1 }; // RTO value, microseconds int _rto { -1 }; // RTO value, microseconds
}; };

View file

@ -580,7 +580,7 @@ void Connection::updateRTT(int rtt) {
} }
int Connection::estimatedTimeout() const { int Connection::estimatedTimeout() const {
return _congestionControl->_userDefinedRto ? _congestionControl->_rto : _rtt + _rttVariance * 4; return _congestionControl->_userDefinedRTO ? _congestionControl->_rto : _rtt + _rttVariance * 4;
} }
void Connection::updateCongestionControlAndSendQueue(std::function<void ()> congestionCallback) { void Connection::updateCongestionControlAndSendQueue(std::function<void ()> congestionCallback) {