- Sep 27, 2017
-
-
David Baker authored
Make the spam checker a module
-
David Baker authored
Sometimes it's a Mock object which is not none but is still not what we're after
-
David Baker authored
-
David Baker authored
-
David Baker authored
-
- Sep 26, 2017
-
-
David Baker authored
-
David Baker authored
-
David Baker authored
Factor out module loading to a separate place
-
David Baker authored
-
David Baker authored
-
David Baker authored
So it can be reused
-
Erik Johnston authored
-
- Sep 25, 2017
-
-
Erik Johnston authored
Refactor to speed up incremental syncs
-
Erik Johnston authored
-
Richard van der Hoff authored
Clarify recommended network setup
-
Max Dor authored
-
Max Dor authored
-
Erik Johnston authored
-
Richard van der Hoff authored
Fix iteration of requests_missing_keys; list doesn't have .values()
-
Richard van der Hoff authored
-
Erik Johnston authored
-
Richard van der Hoff authored
preserve_context_over_function doesn't do what you want it to do.
-
- Sep 22, 2017
-
-
Richard van der Hoff authored
Support SRV records which point at AAAA records, as well as A records. Fixes https://github.com/matrix-org/synapse/issues/2405
-
Matthew Hodgson authored
-
Erik Johnston authored
-
- Sep 20, 2017
-
-
Richard van der Hoff authored
Clean up Keyring code
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
preserve_context_over_fn is essentially broken, because (a) it pointlessly drops the current logcontext before calling its wrapped function, which means we don't get any useful logcontexts for _handle_key_deferred; (b) it wraps the resulting deferred in a _PreservingContextDeferred, which is very dangerous because you then can't yield on it without leaking context back into the reactor. Instead, let's specify that the resultant deferreds call their callbacks with no logcontext.
-
Richard van der Hoff authored
... which means that logcontexts can be correctly preserved for the stuff it does. get_server_verify_keys is now called with the logcontext, so needs to preserve_fn when it fires off its nested inlineCallbacks function. Also renames get_server_verify_keys to reflect the fact it's meant to be private.
-
Richard van der Hoff authored
If the verify_request.deferred has already completed, then `remove_deferreds` will be called immediately. It therefore might resolve the server_to_deferred deferred while there are still other requests for that server in flight. To avoid that, we should build the complete list of requests, and *then* add the callbacks.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Define that it is run with no log context, and make sure that happens. If we aren't careful to reset the logcontext, we can't bung the deferreds into defer.gatherResults etc. We don't actually do that directly, but we *do* resolve other deferreds from affected callbacks (notably the server_to_deferred map in _start_key_lookups), and those *do* get passed into defer.gatherResults. It turns out that this way ends up being least confusing.
-
Richard van der Hoff authored
... to make it easier to see what's going on.
-
Richard van der Hoff authored
This is a precursor to factoring some of this code out.
-
Richard van der Hoff authored
There's no need for this to be a nested definition; pulling it out not only makes it more efficient, but makes it easier to check that it's not accessing any local variables it shouldn't be.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
This might make the cache slightly more efficient.
-