mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
p2p: use maxDialingConns instead of maxAcceptConns as dial limit
This commit is contained in:
@@ -412,7 +412,7 @@ func (srv *Server) dialLoop() {
|
||||
defer refresh.Stop()
|
||||
|
||||
// Limit the number of concurrent dials
|
||||
tokens := maxAcceptConns
|
||||
tokens := maxDialingConns
|
||||
if srv.MaxPendingPeers > 0 {
|
||||
tokens = srv.MaxPendingPeers
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user