From 1baf9dbdd720f6b6ddc61e6daa5bff7ae2c7b271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20K=2E=20Rekucki?= Date: Wed, 16 Oct 2019 14:18:28 +0200 Subject: [PATCH] added 5min longer timeout-s for all resources. --- golem/network/hyperdrive/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/golem/network/hyperdrive/client.py b/golem/network/hyperdrive/client.py index 1d30543733..1aa9253c04 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(