From: victor Date: Mon, 9 Nov 2009 17:44:29 +0000 (+0000) Subject: minus cwnd drop bug X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=6e787c9fcfc873bba8dfcb63d5258a1cc42a9626;p=swift-upb.git minus cwnd drop bug git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@518 e16421f0-f15b-0410-abcd-98678b794739 --- diff --git a/sendrecv.cpp b/sendrecv.cpp index 1d27470..cf7ec6f 100644 --- a/sendrecv.cpp +++ b/sendrecv.cpp @@ -125,11 +125,11 @@ void Channel::Send () { AddAck(dgram); } dprintf("%s #%i sent %ib %s\n",tintstr(),id,dgram.size(),peer().str().c_str()); - if (dgram.Send()==-1) - print_error("can't send datagram"); if (dgram.size()==4) // only the channel id; bare keep-alive data = bin64_t::ALL; cc_->OnDataSent(data); + if (dgram.Send()==-1) + print_error("can't send datagram"); last_send_time_ = NOW; RequeueSend(cc_->NextSendTime()); }