tail drop

This commit is contained in:
Jeff Becker 2020-01-18 16:59:50 -05:00
parent 4185d47d4b
commit 860891b6a6
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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));
} }
} }