Skip to content
Snippets Groups Projects
Unverified Commit 4d08b8f3 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Don't do long retries when calling the key notary server. (#5334)

It takes at least 20 minutes to work through the long_retries schedule (11
attempts, each with a 60 second timeout, and 60 seconds between each request),
so if the notary server isn't returning within the timeout, we'll just end up
blocking whatever request is happening for 20 minutes.

Ain't nobody got time for that.
parent cb683d3e
No related branches found
No related tags found
No related merge requests found
Fix bug which would make certain operations (such as room joins) block for 20 minutes while attemoting to fetch verification keys.
......@@ -644,7 +644,6 @@ class PerspectivesKeyFetcher(BaseV2KeyFetcher):
for server_name, server_keys in keys_to_fetch.items()
}
},
long_retries=True,
)
except (NotRetryingDestination, RequestSendFailed) as e:
raise_from(KeyLookupError("Failed to connect to remote server"), e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment