p2p: bump maxAcceptConns and defaultDialTimout

On the test network, we've seen that it becomes harder to connect
if the queues are so short.
This commit is contained in:
Felix Lange 2015-05-14 01:43:30 +02:00
parent f7fdb4dfbe
commit 7efeb4bd96
1 changed files with 2 additions and 2 deletions

View File

@ -18,12 +18,12 @@ import (
) )
const ( const (
defaultDialTimeout = 10 * time.Second defaultDialTimeout = 15 * time.Second
refreshPeersInterval = 30 * time.Second refreshPeersInterval = 30 * time.Second
staticPeerCheckInterval = 15 * time.Second staticPeerCheckInterval = 15 * time.Second
// Maximum number of concurrently handshaking inbound connections. // Maximum number of concurrently handshaking inbound connections.
maxAcceptConns = 10 maxAcceptConns = 50
// Maximum number of concurrently dialing outbound connections. // Maximum number of concurrently dialing outbound connections.
maxDialingConns = 10 maxDialingConns = 10