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:
5c5dc8f
)
the nap bug
author
Victor Grishchenko
<victor.grishchenko@gmail.com>
Tue, 19 Oct 2010 09:46:28 +0000
(11:46 +0200)
committer
Victor Grishchenko
<victor.grishchenko@gmail.com>
Tue, 19 Oct 2010 09:46:28 +0000
(11:46 +0200)
send_control.cpp
patch
|
blob
|
history
diff --git
a/send_control.cpp
b/send_control.cpp
index
599f844
..
130e9bd
100644
(file)
--- a/
send_control.cpp
+++ b/
send_control.cpp
@@
-73,7
+73,8
@@
tint Channel::KeepAliveNextSendTime () {
return SwitchSendControl(SLOW_START_CONTROL);
if (data_in_.time!=TINT_NEVER)
return NOW;
- send_interval_ <<= 1;
+ if (last_send_time_==NOW)
+ send_interval_ <<= 1;
if (send_interval_>MAX_SEND_INTERVAL)
send_interval_ = MAX_SEND_INTERVAL;
return last_send_time_ + send_interval_;