cautious optimism
authorvictor <victor@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 12 Nov 2009 16:24:47 +0000 (16:24 +0000)
committervictor <victor@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 12 Nov 2009 16:24:47 +0000 (16:24 +0000)
git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@545 e16421f0-f15b-0410-abcd-98678b794739

sendrecv.cpp

index e56deb5..5cdf7e1 100644 (file)
@@ -40,7 +40,7 @@ void  Channel::AddPeakHashes (Datagram& dgram) {
 
 void   Channel::AddUncleHashes (Datagram& dgram, bin64_t pos) {
     bin64_t peak = file().peak_for(pos);
-    while (pos!=peak && !data_out_cap_.within(pos.parent()) &&
+    while (pos!=peak && ((NOW&7)==7 || !data_out_cap_.within(pos.parent())) &&
             ack_in_.get(pos.parent())==bins::EMPTY) {
         bin64_t uncle = pos.sibling();
                dgram.Push8(P2TP_HASH);