From: Victor Grishchenko Date: Wed, 10 Feb 2010 14:12:47 +0000 (+0100) Subject: Fast fix for the RTT calculation bug X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=ee173aac2696f0d727dedc25994e735865f12073;p=swift-upb.git Fast fix for the RTT calculation bug Need to recover the ACKTS message back; splitting into TS+ACK was a weird idea. --- diff --git a/sendrecv.cpp b/sendrecv.cpp index a0a1968..6a56bce 100644 --- a/sendrecv.cpp +++ b/sendrecv.cpp @@ -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