mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:03:38 +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 congestionWindow = std::min(_congestionWindowSize + numAcked, _sendSlowStartThreshold);
|
||||
numAcked -= congestionWindow - _congestionWindowSize;
|
||||
_congestionWindowSize = std::min(congestionWindow, _sendCongestionWindowClamp);
|
||||
_congestionWindowSize = congestionWindow;
|
||||
|
||||
return numAcked;
|
||||
}
|
||||
|
@ -87,7 +87,5 @@ void TCPRenoCC::performCongestionAvoidanceAI(int sendCongestionWindowSize, int n
|
|||
_sendCongestionWindowCount -= delta * sendCongestionWindowSize;
|
||||
_sendCongestionWindowCount += delta;
|
||||
}
|
||||
_sendCongestionWindowCount = std::min(_sendCongestionWindowCount, _sendCongestionWindowClamp);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ protected:
|
|||
|
||||
int _sendSlowStartThreshold;
|
||||
int _sendCongestionWindowCount;
|
||||
int _sendCongestionWindowClamp = ~0;
|
||||
int _maxPacketsOut;
|
||||
bool _isCongestionWindowLimited;
|
||||
|
||||
|
|
Loading…
Reference in a new issue