losses off
authorvictor <victor@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 29 Oct 2009 16:39:54 +0000 (16:39 +0000)
committervictor <victor@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 29 Oct 2009 16:39:54 +0000 (16:39 +0000)
git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@492 e16421f0-f15b-0410-abcd-98678b794739

datagram.cpp
sendrecv.cpp

index 08abef0..c3ba032 100644 (file)
@@ -14,7 +14,7 @@
 #else
     #include <arpa/inet.h>
 #endif
-#define RND_DROP 10
+//#define RND_DROP 10
 #include <glog/logging.h>
 #include "datagram.h"
 
index e37a0c5..db4fdad 100644 (file)
@@ -122,7 +122,8 @@ void        Channel::Send () {
 void   Channel::AddHint (Datagram& dgram) {
 
     while (!hint_out_.empty() &&
-            hint_out_.front().time<Datagram::now-TINT_SEC) {
+            (hint_out_.front().time<Datagram::now-TINT_SEC ||
+            file().ack_out().get(hint_out_.front().bin)==bins::FILLED ) ) {
         file().picker().Expired(hint_out_.front().bin);
         hint_out_.pop_front();
     }