diff --git a/golem/network/hyperdrive/client.py b/golem/network/hyperdrive/client.py index 1d30543733..de883f4157 100644 --- a/golem/network/hyperdrive/client.py +++ b/golem/network/hyperdrive/client.py @@ -21,6 +21,7 @@ log = logging.getLogger(__name__) +GRACE_PERIOD = 300 def to_hyperg_peer(host: str, port: int) -> Dict[str, Tuple[str, int]]: return {'TCP': (host, port)} @@ -76,7 +77,7 @@ def add(self, files, client_options=None, **kwargs): command='upload', id=kwargs.get('id'), files=files, - timeout=round_timeout(client_options.timeout) + timeout=round_timeout(client_options.timeout) + GRACE_PERIOD ) return response['hash'] @@ -168,7 +169,7 @@ def add_async( command='upload', id=kwargs.get('id'), files=files, - timeout=round_timeout(client_options.timeout), + timeout=round_timeout(client_options.timeout) + GRACE_PERIOD, user=golem.tools.talkback.user(), ) return self._async_request(