diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-14 23:15:51 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-14 23:15:51 +0800 |
commit | 90b94e64fcdc6a2099ec5c48e41acf7f95a6b804 (patch) | |
tree | f8b7c0336f69aa3c66560a57dc9e172eb81418e8 /p2p/server.go | |
parent | ff87c241a715833fa09cbed5e4acf0f1dfa9b745 (diff) | |
parent | d2f119cf9b30a7568b5ebe7c290c3be30dc0f2de (diff) | |
download | dexon-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar dexon-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.gz dexon-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.bz2 dexon-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.lz dexon-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.xz dexon-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.zst dexon-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.zip |
Merge pull request #971 from fjl/p2p-limit-tweaks
p2p: tweak connection limits
Diffstat (limited to 'p2p/server.go')
-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 3c6fb5893..8f768bdff 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -18,12 +18,12 @@ import ( ) const ( - defaultDialTimeout = 10 * time.Second + defaultDialTimeout = 15 * time.Second refreshPeersInterval = 30 * time.Second staticPeerCheckInterval = 15 * time.Second // Maximum number of concurrently handshaking inbound connections. - maxAcceptConns = 10 + maxAcceptConns = 50 // Maximum number of concurrently dialing outbound connections. maxDialingConns = 10 |