- Sep 27, 2018
-
-
Richard van der Hoff authored
If we've fetched state events from remote servers in order to resolve the state for a new event, we need to actually pass those events into resolve_events_with_factory (so that it can do the state res) and then persist the ones we need - otherwise other bits of the codebase get confused about why we have state groups pointing to non-existent events.
-
Richard van der Hoff authored
get_state_groups returns a map from state_group_id to a list of FrozenEvents, so was very much the wrong thing to be putting as one of the entries in the list passed to resolve_events_with_factory (which expects maps from (event_type, state_key) to event id). We actually want get_state_groups_ids().values() rather than get_state_groups(). This fixes the main problem in #3923, but there are other problems with this bit of code which get discovered once you do so.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
* add some comments on things that look a bit bogus * rename this `state` variable to avoid confusion with the `state` used elsewhere in this function. (There was no actual conflict, but it was a confusing bit of spaghetti.)
-
Richard van der Hoff authored
Logging improvements
-
Richard van der Hoff authored
when processing incoming transactions, it can be hard to see what's going on, because we process a bunch of stuff in parallel, and because we may end up recursively working our way through a chain of three or four events. This commit creates a way to use logcontexts to add the relevant event ids to the log lines.
-
Richard van der Hoff authored
I spent ages trying to figure out how I was going mad...
-
Amber Brown authored
fix docstring for FederationClient.get_state_for_room
-
- Sep 26, 2018
-
-
Richard van der Hoff authored
Some logging tweaks to help with debugging incoming federation transactions
-
Richard van der Hoff authored
-
Richard van der Hoff authored
trivial fixes for docstring
-
Amber Brown authored
* changelog * reduce circleci config * plus a handy script * fix regex
-
Richard van der Hoff authored
-
Erik Johnston authored
-
Richard van der Hoff authored
Fix ExpiringCache.__len__ to be accurate
-
Richard van der Hoff authored
-
Amber Brown authored
Move synctl into top dir to avoid a symlink
-
Amber Brown authored
Comments and interface cleanup for on_receive_pdu
-
Richard van der Hoff authored
-
Erik Johnston authored
It used to try and produce an estimate, which was sometimes negative. This caused metrics to be sad, so lets always just calculate it from scratch. (This appears to have been a longstanding bug, but one which has been made more of a problem by #3932 and #3933). (This was originally done by Erik as part of #3933. I'm cherry-picking it because really it's a fix in its own right)
-
- Sep 25, 2018
-
-
Richard van der Hoff authored
make python 3 work in the docker container
-
Jan Christian Grünhage authored
-
Jan Christian Grünhage authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Fix some instances of ExpiringCache not expiring cache items
-
Jérémy Farnaud authored
Synapse doesn’t allow for media resources to be played directly from Chrome. It is a problem for users on other networks (e.g. IRC) communicating with Matrix users through a gateway. The gateway sends them the raw URL for the resource when a Matrix user uploads a video and the video cannot be played directly in Chrome using that URL. Chrome argues it is not authorized to play the video because of the Content Security Policy. Chrome checks for the "media-src" policy which is missing, and defauts to the "default-src" policy which is "none". As Synapse already sends "object-src: 'self'" I thought it wouldn’t be a problem to add "media-src: 'self'" to the CSP to fix this problem.
-
Richard van der Hoff authored
Fix spurious exceptions when client closes conncetion
-
Richard van der Hoff authored
-
Richard van der Hoff authored
symlinks apparently break setuptools on python3 and alpine (https://bugs.python.org/issue31940), so let's stop using a symlink and just use the file directly.
-
Richard van der Hoff authored
We require attrs 16.0.0
-
Richard van der Hoff authored
-
- Sep 24, 2018
-
-
Matthew Hodgson authored
Given we have disabled lazy loading for incr syncs in #3840, we can make self-LL more efficient by only doing it on initial sync. Also adds a bounds check for if/when we change our mind, so that we don't try to include LL members on sync responses with no timeline.
-
Amber Brown authored
-
Amber Brown authored
Internal Changes ---------------- - Fix incompatibility with older Twisted version in tests. Thanks @OlegGirko! ([\#3940](https://github.com/matrix-org/synapse/issues/3940))
-
Amber Brown authored
-
Amber Brown authored
-
Oleg Girko authored
Older Twisted (18.4.0) returns TimeoutError instead of ConnectingCancelledError when connection times out. This change allows tests to be compatible with this behaviour. Signed-off-by:
Oleg Girko <ol@infoserver.lv>
-