mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 21:39:40 +02:00
Remove congestion window size clamp
This commit is contained in:
parent
0954d5bf93
commit
eee617e39c
2 changed files with 1 additions and 4 deletions
|
@ -38,7 +38,7 @@ bool TCPRenoCC::isInSlowStart() {
|
||||||
int TCPRenoCC::performSlowStart(int numAcked) {
|
int TCPRenoCC::performSlowStart(int numAcked) {
|
||||||
int congestionWindow = std::min(_congestionWindowSize + numAcked, _sendSlowStartThreshold);
|
int congestionWindow = std::min(_congestionWindowSize + numAcked, _sendSlowStartThreshold);
|
||||||
numAcked -= congestionWindow - _congestionWindowSize;
|
numAcked -= congestionWindow - _congestionWindowSize;
|
||||||
_congestionWindowSize = std::min(congestionWindow, _sendCongestionWindowClamp);
|
_congestionWindowSize = congestionWindow;
|
||||||
|
|
||||||
return numAcked;
|
return numAcked;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,5 @@ void TCPRenoCC::performCongestionAvoidanceAI(int sendCongestionWindowSize, int n
|
||||||
_sendCongestionWindowCount -= delta * sendCongestionWindowSize;
|
_sendCongestionWindowCount -= delta * sendCongestionWindowSize;
|
||||||
_sendCongestionWindowCount += delta;
|
_sendCongestionWindowCount += delta;
|
||||||
}
|
}
|
||||||
_sendCongestionWindowCount = std::min(_sendCongestionWindowCount, _sendCongestionWindowClamp);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@ protected:
|
||||||
|
|
||||||
int _sendSlowStartThreshold;
|
int _sendSlowStartThreshold;
|
||||||
int _sendCongestionWindowCount;
|
int _sendCongestionWindowCount;
|
||||||
int _sendCongestionWindowClamp = ~0;
|
|
||||||
int _maxPacketsOut;
|
int _maxPacketsOut;
|
||||||
bool _isCongestionWindowLimited;
|
bool _isCongestionWindowLimited;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue