Fast fix for the RTT calculation bug
authorVictor Grishchenko <victor.grishchenko@gmail.com>
Wed, 10 Feb 2010 14:12:47 +0000 (15:12 +0100)
committerVictor Grishchenko <victor.grishchenko@gmail.com>
Wed, 10 Feb 2010 14:12:47 +0000 (15:12 +0100)
Need to recover the ACKTS message back; splitting into TS+ACK
was a weird idea.

sendrecv.cpp

index a0a1968..6a56bce 100644 (file)
@@ -407,6 +407,7 @@ void    Channel::CleanDataOut (bin64_t ackd_pos) { // TODO: isn't it too long?
                 data_out_cap_ = bin64_t::ALL;
             }
         }
+        peer_send_time_ = 0;
     }
     tint timeout = NOW - rtt_avg_ - 4*std::max(dev_avg_,TINT_MSEC*50);
     while (!data_out_.empty() && data_out_.front().time<timeout) {