From: Victor Grishchenko Date: Wed, 16 Dec 2009 15:15:59 +0000 (+0100) Subject: faster recovery X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=9be4d088318863253503476467758b93b4bb2ce4;p=swift-upb.git faster recovery --- 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(); }