Skip to content
Snippets Groups Projects
Commit 4c5e2692 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

net: increase max queue size

Queue is also time-bounded.
Allow for larger bursts of packets.
parent 724c3e43
Branches
Tags
No related merge requests found
......@@ -42,7 +42,7 @@ namespace dht {
namespace net {
static const constexpr in_port_t DHT_DEFAULT_PORT = 4222;
static const constexpr size_t RX_QUEUE_MAX_SIZE = 1024 * 16;
static const constexpr size_t RX_QUEUE_MAX_SIZE = 1024 * 64;
static const constexpr std::chrono::milliseconds RX_QUEUE_MAX_DELAY(650);
int bindSocket(const SockAddr& addr, SockAddr& bound);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment