| Commit message (Collapse) | Author | Files | Lines |
|
Support SRV records which point at AAAA records, as well as A records.
Fixes https://github.com/matrix-org/synapse/issues/2405
|
|
|
|
|
|
|
|
|
|
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.
|
|
... 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.
|
|
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.
|
|
|
|
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.
|
|
... to make it easier to see what's going on.
|
|
This is a precursor to factoring some of this code out.
|
|
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.
|
|
|
|
This might make the cache slightly more efficient.
|
|
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.
|
|
Fix a bug where we could end up firing off multiple requests for server_keys
for the same server at the same time.
|
|
- allows sysadmins the ability to lock down their servers so that people can't
send their users room invites.
|
|
|
|
Demonstration of how you might add some hooks to filter out spammy events.
|
|
We should only kick guest users if the guest access event is authorised.
|
|
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...
|
|
|
|
as really it's part of the event ID
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PR #2413 added an issue template, but just adding files to the project
directory upsets the packaging scripts: we need to explicitly include or
exclude them.
Move the template into a .github directory to make that easy, and to de-clutter
the root a bit.
|
|
- this ensures we end up with a working virtualenv which we can use for other
things.
|
|
|
|
.. because I want to make the 'install_and_run' script useful for non-synapse
jobs, which do not accept --python. In any case we set up the path here, so
sytest shouldn't be guessing it.
|
|
|
|
.. because I want to make the 'install_and_run' script useful for non-synapse
jobs, which do not accept --python. In any case we set up the path here, so
sytest shouldn't be guessing it.
|
|
|
|
so that you don't necessarily need a config file.
|
|
Make it read the config file, primarily.
|
|
Added instructions for checking server version.
|
|
Responding to review comments.
|
|
... from https://github.com/matrix-org/synapse-prometheus-config.
|
|
Add missing parameter to _base.start_worker_reactor
|
|
escape the % that got added in 92168cb so that the process starts up ok.
|
|
|
|
Make it possible to set the CPU affinity in the config file, so that we don't
need to remember to do it manually every time.
|
|
We have 10 copies of this code, and I don't really want to update each one
separately.
|
|
Removed the sentence encouraging people not to file a bug - if people are in doubt we'd rather they filed a bug than gave up entirely.
|
|
Oops capital L |