Browse Source

Reduce new peers per source limit to 2 by default

master
Neil Booth 8 years ago
parent
commit
d198b95798
  1. 2
      server/peers.py

2
server/peers.py

@ -273,7 +273,7 @@ class PeerManager(util.LoggedClass):
return [peer_data(peer) for peer in sorted(self.peers, key=peer_key)]
def add_peers(self, peers, limit=3, check_ports=False, source=None):
def add_peers(self, peers, limit=2, check_ports=False, source=None):
'''Add a limited number of peers that are not already present.'''
retry = False
new_peers = []

Loading…
Cancel
Save