mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-10 10:06:47 +00:00
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:
parent
f7fdb4dfbe
commit
7efeb4bd96
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue