p2p: use maxDialingConns instead of maxAcceptConns as dial limit

pull/885/head
Felix Lange 10 years ago
parent 914e57e49b
commit 9c0f36c46d
  1. 2
      p2p/server.go

@ -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
}

Loading…
Cancel
Save