From d564d1709f1b18a6307e37475518348e49a5ba77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Tue, 17 Jul 2018 10:12:11 +0200 Subject: [PATCH] Increase the number of sessions. --- util/network-devp2p/src/host.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/network-devp2p/src/host.rs b/util/network-devp2p/src/host.rs index 28d6620bc10..543cf9d4fc5 100644 --- a/util/network-devp2p/src/host.rs +++ b/util/network-devp2p/src/host.rs @@ -49,7 +49,7 @@ use network::{ConnectionFilter, ConnectionDirection}; type Slab = ::slab::Slab; -const MAX_SESSIONS: usize = 1024 + MAX_HANDSHAKES; +const MAX_SESSIONS: usize = 2048 + MAX_HANDSHAKES; const MAX_HANDSHAKES: usize = 1024; const DEFAULT_PORT: u16 = 30303;