From 4c5e26922c62e6f885fdb36c3c502683f0e6d0cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Mon, 18 Apr 2022 17:24:27 -0400
Subject: [PATCH] net: increase max queue size

Queue is also time-bounded.
Allow for larger bursts of packets.
---
 include/opendht/network_utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/opendht/network_utils.h b/include/opendht/network_utils.h
index d781eb0d..238b876f 100644
--- a/include/opendht/network_utils.h
+++ b/include/opendht/network_utils.h
@@ -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);
-- 
GitLab