From: Victor Grishchenko (mughal) Date: Mon, 1 Mar 2010 18:22:59 +0000 (+0100) Subject: bug: add haves X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=3f3069e5572f4ccae727326ee224c0aca71ad06c;p=swift-upb.git bug: add haves --- diff --git a/sendrecv.cpp b/sendrecv.cpp index 7a5637e..978618b 100644 --- a/sendrecv.cpp +++ b/sendrecv.cpp @@ -113,6 +113,7 @@ void Channel::Send () { bin64_t data = bin64_t::NONE; if ( is_established() ) { // FIXME: seeder check + AddHave(dgram); AddAck(dgram); if (!file().is_complete()) AddHint(dgram); @@ -121,6 +122,7 @@ void Channel::Send () { data = AddData(dgram); } else { AddHandshake(dgram); + AddHave(dgram); AddAck(dgram); } dprintf("%s #%u sent %ib %s:%x\n",