From: victor Date: Tue, 1 Dec 2009 09:42:45 +0000 (+0000) Subject: hints are optional X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=96bbe6de3e2b6fa50f9ec499e7836676abcc70b4;p=swift-upb.git hints are optional git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@696 e16421f0-f15b-0410-abcd-98678b794739 --- diff --git a/sendrecv.cpp b/sendrecv.cpp index 393a564..f3b826d 100644 --- a/sendrecv.cpp +++ b/sendrecv.cpp @@ -65,6 +65,11 @@ bin64_t Channel::DequeueHint () { // TODO: resilience hint_in_.push_front(hint.sibling()); } } + if (send==bin64_t::NONE) { + send = file().ack_out().find_filtered(ack_in_,bin64_t::ALL,bins::FILLED); + if (send!=bin64_t::NONE) + send = send.left_foot(); + } uint64_t mass = 0; for(int i=0; iMAX_REORDERING) { cc_->OnAckRcvd(bin64_t::NONE); + dprintf("%s #%i Rdata %s\n",tintstr(),id,data_out_.front().bin.str()); data_out_.pop_front(); max_ack_off--; data_out_cap_ = bin64_t::ALL; - dprintf("%s #%i Rdata %s\n",tintstr(),id,data_out_.front().bin.str()); } } }