- Jul 30, 2020
-
-
Olivier Wilkinson (reivilibre) authored
Signed-off-by:
Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-
Olivier Wilkinson (reivilibre) authored
- Jul 29, 2020
-
-
Erik Johnston authored
-
- Jul 28, 2020
-
-
Erik Johnston authored
IIRC this doesn't break tests because its only hit on reconnection, or something. Basically, when a process needs to fetch missing updates for the `typing` stream it needs to query the writer instance via HTTP (as we don't write typing notifications to the DB), the problem was that the endpoint (`streams`) was only registered on master and specifically not on the typing writer worker.
- Jul 27, 2020
-
-
Richard van der Hoff authored
Most of the stuff we do for replication commands can be done synchronously. There's no point spinning up background processes if we're not going to need them.
-
Richard van der Hoff authored
-
Erik Johnston authored
-
Erik Johnston authored
Handling of incoming typing stream updates from replication was not hooked up on master, effecting set ups where typing was handled on a different worker. This is really only a problem if the master process is also handling sync requests, which is unlikely for those that are at the stage of moving typing off. The other observable effect is that if a worker restarts or a replication connect drops then the typing worker will issue a `POSITION typing`, triggering master process to try and stream *all* typing updates from position 0. Fixes #7907
-
Patrick Cloke authored
-
Andrew Morgan authored
Converts tests/rest/admin/test_room.py to have unix file endings after they were accidentally changed in #7613. Keeping the same changelog as #7613 as it hasn't gone out in a release yet.
-
Patrick Cloke authored
Fixes previews of Twitter URLs by using their oEmbed endpoint to grab content.
-
- Jul 24, 2020
-
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Richard van der Hoff authored
Clients disconnecting before we finish processing the request happens from time to time. We don't need to yell about it
-
- Jul 23, 2020
-
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Richard van der Hoff authored
If we send out an event which refers to `prev_events` which other servers in the federation are missing, then (after a round or two of backfill attempts), they will end up asking us for `/state_ids` at a particular point in the DAG. As per https://github.com/matrix-org/synapse/issues/7893, this is quite expensive, and we tend to see lots of very similar requests around the same time. We can therefore handle this much more efficiently by using a cache, which (a) ensures that if we see the same request from multiple servers (or even the same server, multiple times), then they share the result, and (b) any other servers that miss the initial excitement can also benefit from the work. [It's interesting to note that `/state` has a cache for exactly this reason. `/state` is now essentially unused and replaced with `/state_ids`, but evidently when we replaced it we forgot to add a cache to the new endpoint.]
-
Richard van der Hoff authored
For inbound federation requests, if a given remote server makes too many requests at once, we start stacking them up rather than processing them immediatedly. However, that means that there is a fair chance that the requesting server will disconnect before we start processing the request. In that case, if it was a read-only request (ie, a GET request), there is absolutely no point in building a response (and some requests are quite expensive to handle). Even in the case of a POST request, one of two things will happen: * Most likely, the requesting server will retry the request and we'll get the information anyway. * Even if it doesn't, the requesting server has to assume that we didn't get the memo, and act accordingly. In short, we're better off aborting the request at this point rather than ploughing on with what might be a quite expensive request.
-
Michael Kaye authored
-
Patrick Cloke authored
-
- Jul 22, 2020
-
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Brendan Abolivier authored
Update the dates for ACME v1 EOL
-
Richard van der Hoff authored
... it's a load of work which may be entirely redundant.
-
Richard van der Hoff authored
-
- Jul 21, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
I'm going to be doing more stuff synchronously, and I don't want to lose the CPU metrics down the sofa.
-
Richard van der Hoff authored
This had some dead code and some just plain wrong docstrings.
-
Richard van der Hoff authored
-
Patrick Cloke authored
-
Jason Robinson authored
Use Element CSS and logo in notification emails when app name is Element. Signed-off-by:
Jason Robinson <jasonr@matrix.org>
-
- Jul 20, 2020
-
-
Andrew Morgan authored
Run `isort`, `flake8` and `black` over the `contrib/` directory and `synctl` script. The latter was already being done in CI, but now the linting script does it too. Fixes https://github.com/matrix-org/synapse/issues/7910
-
Karthikeyan Singaravelan authored
-