mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 00:39:26 +00:00
p2p: use maxDialingConns instead of maxAcceptConns as dial limit
This commit is contained in:
parent
914e57e49b
commit
9c0f36c46d
1 changed files with 1 additions and 1 deletions
|
|
@ -412,7 +412,7 @@ func (srv *Server) dialLoop() {
|
||||||
defer refresh.Stop()
|
defer refresh.Stop()
|
||||||
|
|
||||||
// Limit the number of concurrent dials
|
// Limit the number of concurrent dials
|
||||||
tokens := maxAcceptConns
|
tokens := maxDialingConns
|
||||||
if srv.MaxPendingPeers > 0 {
|
if srv.MaxPendingPeers > 0 {
|
||||||
tokens = srv.MaxPendingPeers
|
tokens = srv.MaxPendingPeers
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue