From 5bd6cc9fac69f910d48ad8708d2c14848411df0c Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 18 Oct 2016 16:01:03 -0700 Subject: [PATCH] fix comparison for reno slow start --- libraries/networking/src/udt/TCPVegasCC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/networking/src/udt/TCPVegasCC.cpp b/libraries/networking/src/udt/TCPVegasCC.cpp index 240a84b376..c811b2d2ea 100644 --- a/libraries/networking/src/udt/TCPVegasCC.cpp +++ b/libraries/networking/src/udt/TCPVegasCC.cpp @@ -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;