diff --git a/src/Site/Site.py b/src/Site/Site.py index 8dbb4c488..bb0bdfb6c 100644 --- a/src/Site/Site.py +++ b/src/Site/Site.py @@ -322,10 +322,10 @@ def publisher(self, inner_path, peers, published, limit, event_done=None): peer = peers.pop(0) if peer.connection and peer.connection.last_ping_delay: # Peer connected # Timeout: 5sec + size in kb + last_ping - timeout = timeout = 5 + int(file_size / 1024) + peer.connection.last_ping_delay + timeout = 5 + int(file_size / 1024) + peer.connection.last_ping_delay else: # Peer not connected - # Timeout: 5sec + size in kb - timeout = timeout = 5 + int(file_size / 1024) + # Timeout: 10sec + size in kb + timeout = 10 + int(file_size / 1024) result = {"exception": "Timeout"} for retry in range(2):