projects
/
swift-upb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7898817
)
faster recovery
author
Victor Grishchenko
<victor.grishchenko@gmail.com>
Wed, 16 Dec 2009 15:15:59 +0000
(16:15 +0100)
committer
Victor Grishchenko
<victor.grishchenko@gmail.com>
Wed, 16 Dec 2009 15:15:59 +0000
(16:15 +0100)
send_control.cpp
patch
|
blob
|
history
diff --git
a/send_control.cpp
b/send_control.cpp
index
7111279
..
4938c2d
100644
(file)
--- 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();
}