fix comparison for reno slow start

This commit is contained in:
Stephen Birarda 2016-10-18 16:01:03 -07:00
parent ddce913095
commit 5bd6cc9fac

View file

@ -235,7 +235,7 @@ void TCPVegasCC::performRenoCongestionAvoidance(SequenceNumber ack) {
// allowing it to grow as high as the slow start threshold
int congestionWindow = _congestionWindowSize + numAcked;
if (_congestionWindowSize > udt::MAX_PACKETS_IN_FLIGHT) {
if (congestionWindow > udt::MAX_PACKETS_IN_FLIGHT) {
// we're done with slow start, set the congestion window to the slow start threshold
_congestionWindowSize = udt::MAX_PACKETS_IN_FLIGHT;