Keep minimum 5 connections per site
This commit is contained in:
parent
95cbc544de
commit
639a834658
1 changed files with 3 additions and 3 deletions
|
@ -770,9 +770,9 @@ class Site(object):
|
||||||
else:
|
else:
|
||||||
self.announcePex()
|
self.announcePex()
|
||||||
|
|
||||||
# Keep connections to get the updates (required for passive clients)
|
# Keep connections to get the updates
|
||||||
def needConnections(self, num=3):
|
def needConnections(self, num=5):
|
||||||
need = min(len(self.peers), num) # Need 3 peer, but max total peers
|
need = min(len(self.peers), num) # Need 5 peer, but max total peers
|
||||||
|
|
||||||
connected = self.getConnectedPeers()
|
connected = self.getConnectedPeers()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue