diff options
author | Kali Kaneko <kali@leap.se> | 2015-10-02 11:54:54 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-10-02 14:40:26 -0400 |
commit | 2121d21945ef7458eb57c3cab53a98b92fce1417 (patch) | |
tree | 4bcb02c7ba3372160e2fb0e039b924b45a8c56e5 /client/src/leap/soledad | |
parent | 234e5879188fe100bf99b9ef6f252abff06b4dad (diff) |
[bug] increase http request timeout time to 90s
this is a workaroud to reduce the chances of failed sync due to
timeouts. this should be properly tackled by:
1. implementing proper cancellable for the sync operation.
2. implementing a retry count at the level of a single request, handled
internally by soledad.
in this way we can remove the retries logic from the soledadbootstrapper
in the bitmask client.
- Related: #7382
Diffstat (limited to 'client/src/leap/soledad')
-rw-r--r-- | client/src/leap/soledad/client/http_target/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/http_target/__init__.py b/client/src/leap/soledad/client/http_target/__init__.py index 7a5cea9f..498fb6e7 100644 --- a/client/src/leap/soledad/client/http_target/__init__.py +++ b/client/src/leap/soledad/client/http_target/__init__.py @@ -87,4 +87,8 @@ class SoledadHTTPSyncTarget(SyncTargetAPI, HTTPDocSender, HTTPDocFetcher): # asynchronous encryption/decryption attributes self._decryption_callback = None self._sync_decr_pool = None - self._http = HTTPClient(cert_file) + + # XXX Increasing timeout of simple requests to avoid chances of hitting + # the duplicated syncing bug. This could be reduced to the 30s default + # after implementing Cancellable Sync. See #7382 + self._http = HTTPClient(cert_file, timeout=90) |