mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 20:46:40 +00:00
p2p: reduce the concurrent handshakes to 10/10 in/out
This commit is contained in:
parent
2060bc8bac
commit
af93217775
1 changed files with 2 additions and 2 deletions
|
|
@ -25,10 +25,10 @@ const (
|
||||||
// This is the maximum number of inbound connection
|
// This is the maximum number of inbound connection
|
||||||
// that are allowed to linger between 'accepted' and
|
// that are allowed to linger between 'accepted' and
|
||||||
// 'added as peer'.
|
// 'added as peer'.
|
||||||
maxAcceptConns = 50
|
maxAcceptConns = 10
|
||||||
|
|
||||||
// Maximum number of concurrently dialing outbound connections.
|
// Maximum number of concurrently dialing outbound connections.
|
||||||
maxDialingConns = 50
|
maxDialingConns = 10
|
||||||
|
|
||||||
// total timeout for encryption handshake and protocol
|
// total timeout for encryption handshake and protocol
|
||||||
// handshake in both directions.
|
// handshake in both directions.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue