Bläddra i källkod

p2p: reduce the concurrent handshakes to 10/10 in/out

Péter Szilágyi 10 år sedan
förälder
incheckning
af93217775
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      p2p/server.go

+ 2 - 2
p2p/server.go

@@ -25,10 +25,10 @@ const (
 	// This is the maximum number of inbound connection
 	// that are allowed to linger between 'accepted' and
 	// 'added as peer'.
-	maxAcceptConns = 50
+	maxAcceptConns = 10
 
 	// Maximum number of concurrently dialing outbound connections.
-	maxDialingConns = 50
+	maxDialingConns = 10
 
 	// total timeout for encryption handshake and protocol
 	// handshake in both directions.