tail drop

pull/1053/head
Jeff Becker 5 years ago
parent 4185d47d4b
commit 860891b6a6
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -278,14 +278,15 @@ namespace llarp
}
MessageQueue &path_queue = itr_pair.first->second;
/*
if(path_queue.size() >= MAX_PATH_QUEUE_SIZE)
if(path_queue.size() < MAX_PATH_QUEUE_SIZE)
{
path_queue.push(std::move(entry));
}
else
{
m_queueStats.dropped++;
path_queue.pop(); // head drop
}
*/
path_queue.push(std::move(entry));
}
}

Loading…
Cancel
Save