From 9c0f36c46dd85f02c6c02cc646714b2576a70f27 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 8 May 2015 15:58:19 +0200 Subject: [PATCH] p2p: use maxDialingConns instead of maxAcceptConns as dial limit --- p2p/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/server.go b/p2p/server.go index 0598547e4a..171798a1df 100644 --- a/p2p/server.go +++ b/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 }