diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-30 22:39:08 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-07 20:22:09 +0800 |
commit | af932177755f5f839ab29b16dc490d3e1bb3708d (patch) | |
tree | 5cf34538e9551f0f6112892e4938a56df7135a3f /p2p | |
parent | 2060bc8bac0e803c661e0c0b233284ce52630c1d (diff) | |
download | go-tangerine-af932177755f5f839ab29b16dc490d3e1bb3708d.tar.gz go-tangerine-af932177755f5f839ab29b16dc490d3e1bb3708d.tar.zst go-tangerine-af932177755f5f839ab29b16dc490d3e1bb3708d.zip |
p2p: reduce the concurrent handshakes to 10/10 in/out
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/server.go | 4 |
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. |