Merge branch 'master' of git://github.com/gritzko/swift
authorVictor Grishchenko (mughal) <victor.grishchenko@gmail.com>
Wed, 17 Feb 2010 13:27:16 +0000 (14:27 +0100)
committerVictor Grishchenko (mughal) <victor.grishchenko@gmail.com>
Wed, 17 Feb 2010 13:27:16 +0000 (14:27 +0100)
Conflicts:
sendrecv.cpp

1  2 
sendrecv.cpp

diff --cc sendrecv.cpp
@@@ -183,11 -183,10 +183,11 @@@ bin64_t        Channel::AddData (Datagr
          return bin64_t::NONE;
      
      bin64_t tosend = bin64_t::NONE;
 -    if (data_out_.size()<cwnd_ && last_data_out_time_<=NOW-send_interval_) {
 +    tint luft = send_interval_>>2; // may wake up a bit earlier
 +    if (data_out_.size()<cwnd_ && last_data_out_time_+send_interval_+luft<=NOW) {
          tosend = DequeueHint();
          if (tosend==bin64_t::NONE) {
-             dprintf("%s #%u no idea what to send #sendctrl\n",tintstr(),id_);
+             dprintf("%s #%u sendctrl no idea what to send\n",tintstr(),id_);
              if (send_control_!=KEEP_ALIVE_CONTROL)
                  SwitchSendControl(KEEP_ALIVE_CONTROL);
          }