mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 15:08:49 +03:00
Merge pull request #1686 from matrix-org/rav/fix_federation_key_fails
E2E key query: handle federation fails
This commit is contained in:
commit
85cd30b1fd
1 changed files with 10 additions and 0 deletions
|
@ -111,6 +111,11 @@ class E2eKeysHandler(object):
|
||||||
failures[destination] = {
|
failures[destination] = {
|
||||||
"status": 503, "message": "Not ready for retry",
|
"status": 503, "message": "Not ready for retry",
|
||||||
}
|
}
|
||||||
|
except Exception as e:
|
||||||
|
# include ConnectionRefused and other errors
|
||||||
|
failures[destination] = {
|
||||||
|
"status": 503, "message": e.message
|
||||||
|
}
|
||||||
|
|
||||||
yield preserve_context_over_deferred(defer.gatherResults([
|
yield preserve_context_over_deferred(defer.gatherResults([
|
||||||
preserve_fn(do_remote_query)(destination)
|
preserve_fn(do_remote_query)(destination)
|
||||||
|
@ -222,6 +227,11 @@ class E2eKeysHandler(object):
|
||||||
failures[destination] = {
|
failures[destination] = {
|
||||||
"status": 503, "message": "Not ready for retry",
|
"status": 503, "message": "Not ready for retry",
|
||||||
}
|
}
|
||||||
|
except Exception as e:
|
||||||
|
# include ConnectionRefused and other errors
|
||||||
|
failures[destination] = {
|
||||||
|
"status": 503, "message": e.message
|
||||||
|
}
|
||||||
|
|
||||||
yield preserve_context_over_deferred(defer.gatherResults([
|
yield preserve_context_over_deferred(defer.gatherResults([
|
||||||
preserve_fn(claim_client_keys)(destination)
|
preserve_fn(claim_client_keys)(destination)
|
||||||
|
|
Loading…
Reference in a new issue