From 96bbe6de3e2b6fa50f9ec499e7836676abcc70b4 Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 1 Dec 2009 09:42:45 +0000 Subject: [PATCH] hints are optional git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@696 e16421f0-f15b-0410-abcd-98678b794739 --- sendrecv.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()); } } } -- 2.20.1