]> p2p-next.cs.pub.ro Git - swift-upb.git/commitdiff
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 08abef0182a1a3313b8d97b1ba6a8b687d29a2ae..c3ba03262854a49b07c870429cca31af1003ce81 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 e37a0c57a1c65315b04d6d2693685d360e712c7c..db4fdadef601386cfee4c9ca224f8f84fea3cf3f 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();
     }