From 6e787c9fcfc873bba8dfcb63d5258a1cc42a9626 Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 9 Nov 2009 17:44:29 +0000 Subject: [PATCH] minus cwnd drop bug git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@518 e16421f0-f15b-0410-abcd-98678b794739 --- sendrecv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } -- 2.20.1