mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
tail drop
This commit is contained in:
parent
4185d47d4b
commit
860891b6a6
@ -278,14 +278,15 @@ namespace llarp
|
|||||||
}
|
}
|
||||||
|
|
||||||
MessageQueue &path_queue = itr_pair.first->second;
|
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++;
|
m_queueStats.dropped++;
|
||||||
path_queue.pop(); // head drop
|
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
path_queue.push(std::move(entry));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user