- Sep 25, 2017
-
-
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.
-
Richard van der Hoff authored
preserve_fn is a no-op unless the wrapped function returns a Deferred. verify_json_objects_for_server returns a list, so this is doing nothing.
-
- Sep 19, 2017
-
-
Richard van der Hoff authored
Fix a bug where we could end up firing off multiple requests for server_keys for the same server at the same time.
-
Richard van der Hoff authored
- allows sysadmins the ability to lock down their servers so that people can't send their users room invites.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Demonstration of how you might add some hooks to filter out spammy events.
-
Richard van der Hoff authored
We should only kick guest users if the guest access event is authorised.
-
- Sep 18, 2017
-
-
Richard van der Hoff authored
I'm still unclear on what the intended behaviour for `verify_json_objects_for_server` is, but at least I now understand the behaviour of most of the things it calls...
-
Erik Johnston authored
Don't filter out current state events from timeline
-
Erik Johnston authored
-
David Baker authored
Add support for event_id_only push format
-
Erik Johnston authored
Correctly handle leaving room in /key/changes
-
David Baker authored
as really it's part of the event ID
-
David Baker authored
-
David Baker authored
Param in the data dict of a pusher that tells an HTTP pusher to send just the event_id of the event it's notifying about and the notification counts. For clients that want to go & fetch the body of the event themselves anyway.
-
Erik Johnston authored
-
Erik Johnston authored
Send down device list change notif when member leaves/rejoins room
-