git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@492
e16421f0-f15b-0410-abcd-
98678b794739
#else
#include <arpa/inet.h>
#endif
-#define RND_DROP 10
+//#define RND_DROP 10
#include <glog/logging.h>
#include "datagram.h"
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();
}