From 9be4d088318863253503476467758b93b4bb2ce4 Mon Sep 17 00:00:00 2001 From: Victor Grishchenko Date: Wed, 16 Dec 2009 16:15:59 +0100 Subject: [PATCH] faster recovery --- send_control.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/send_control.cpp b/send_control.cpp index 7111279..4938c2d 100644 --- a/send_control.cpp +++ b/send_control.cpp @@ -128,7 +128,10 @@ tint Channel::SlowStartNextSendTime () { tint Channel::AimdNextSendTime () { if (ack_not_rcvd_recent_) BackOffOnLosses(); - cwnd_ += ack_rcvd_recent_/cwnd_; + if (cwnd_>1) + cwnd_ += ack_rcvd_recent_/cwnd_; + else + cwnd_ *= 2; ack_rcvd_recent_=0; return CwndRateNextSendTime(); } -- 2.20.1