Keep minimum 5 connections per site

This commit is contained in:
HelloZeroNet 2016-04-29 02:58:00 +02:00
parent 95cbc544de
commit 639a834658

View file

@ -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()