aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-30 22:39:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-07 20:22:09 +0800
commitaf932177755f5f839ab29b16dc490d3e1bb3708d (patch)
tree5cf34538e9551f0f6112892e4938a56df7135a3f /p2p
parent2060bc8bac0e803c661e0c0b233284ce52630c1d (diff)
downloaddexon-af932177755f5f839ab29b16dc490d3e1bb3708d.tar
dexon-af932177755f5f839ab29b16dc490d3e1bb3708d.tar.gz
dexon-af932177755f5f839ab29b16dc490d3e1bb3708d.tar.bz2
dexon-af932177755f5f839ab29b16dc490d3e1bb3708d.tar.lz
dexon-af932177755f5f839ab29b16dc490d3e1bb3708d.tar.xz
dexon-af932177755f5f839ab29b16dc490d3e1bb3708d.tar.zst
dexon-af932177755f5f839ab29b16dc490d3e1bb3708d.zip
p2p: reduce the concurrent handshakes to 10/10 in/out
Diffstat (limited to 'p2p')
-rw-r--r--p2p/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/server.go b/p2p/server.go
index b7a92ce55..164aaba37 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.