Target 6 connections per site
This commit is contained in:
parent
940d583f9a
commit
e048fa6c6a
1 changed files with 1 additions and 1 deletions
|
@ -965,7 +965,7 @@ class Site(object):
|
||||||
self.announcePex()
|
self.announcePex()
|
||||||
|
|
||||||
# Keep connections to get the updates
|
# Keep connections to get the updates
|
||||||
def needConnections(self, num=4, check_site_on_reconnect=False):
|
def needConnections(self, num=6, check_site_on_reconnect=False):
|
||||||
need = min(len(self.peers), num, config.connected_limit) # Need 5 peer, but max total peers
|
need = min(len(self.peers), num, config.connected_limit) # Need 5 peer, but max total peers
|
||||||
|
|
||||||
connected = len(self.getConnectedPeers())
|
connected = len(self.getConnectedPeers())
|
||||||
|
|
Loading…
Reference in a new issue