From ee173aac2696f0d727dedc25994e735865f12073 Mon Sep 17 00:00:00 2001 From: Victor Grishchenko Date: Wed, 10 Feb 2010 15:12:47 +0100 Subject: [PATCH] Fast fix for the RTT calculation bug Need to recover the ACKTS message back; splitting into TS+ACK was a weird idea. --- sendrecv.cpp | 1 + 1 file changed, 1 insertion(+) 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