From af932177755f5f839ab29b16dc490d3e1bb3708d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 30 Apr 2015 17:39:08 +0300 Subject: [PATCH] p2p: reduce the concurrent handshakes to 10/10 in/out --- p2p/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/server.go b/p2p/server.go index b7a92ce553..164aaba37b 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -25,10 +25,10 @@ const ( // This is the maximum number of inbound connection // that are allowed to linger between 'accepted' and // 'added as peer'. - maxAcceptConns = 50 + maxAcceptConns = 10 // Maximum number of concurrently dialing outbound connections. - maxDialingConns = 50 + maxDialingConns = 10 // total timeout for encryption handshake and protocol // handshake in both directions.