Skip to content

Commit af93217

Browse files
committed
p2p: reduce the concurrent handshakes to 10/10 in/out
1 parent 2060bc8 commit af93217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p2p/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ const (
2525
// This is the maximum number of inbound connection
2626
// that are allowed to linger between 'accepted' and
2727
// 'added as peer'.
28-
maxAcceptConns = 50
28+
maxAcceptConns = 10
2929

3030
// Maximum number of concurrently dialing outbound connections.
31-
maxDialingConns = 50
31+
maxDialingConns = 10
3232

3333
// total timeout for encryption handshake and protocol
3434
// handshake in both directions.

0 commit comments

Comments
 (0)