| Commit message (Collapse) | Author | Files | Lines |
|
|
|
- don't blindly proxy all HTTPRequestExceptions
- log unexpected exceptions at error
- avoid `isinstance`
- improve docs on `from_http_response_exception`
|
|
Give CodeMessageException back its `msg` attribute, and use that to hold the
HTTP status message for HttpResponseException.
|
|
If we try and persist two state events that have the same ancestor we
calculate the wrong current state when persisting those events.
|
|
(But this doesn't implement the same for deleting access tokens or e2e keys.
Also respond to code review.
|
|
|
|
This implements the proposal here https://docs.google.com/document/d/1C-25Gqz3TXy2jIAoeOKxpNtmme0jI4g3yFGqv5GlAAk for deleting multiple devices at once in a single request.
|
|
When we proxy a media request to a remote server, add a query-param, which will
tell the remote server to 404 if it doesn't recognise the server_name.
This should fix a routing loop where the server keeps forwarding back to
itself.
Also improves the error handling on remote media fetches, so that we don't
always return a rather obscure 502.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This makes it tractable to run synapse under pdb.
|
|
- to make it easier to add more config options.
|
|
When we are using a log_config file, reread it on SIGHUP.
|
|
|
|
|
|
|
|
Unfortunately this significantly increases the size of the already-rather-big
FederationHandler, but the code fits more naturally here, and it paves the way
for the tighter integration that I need between handling incoming PDUs and
doing the join dance.
Other than renaming the existing `FederationHandler.on_receive_pdu` to
`_process_received_pdu` to make way for it, this just consists of the move, and
replacing `self.handler` with `self` and `self` with `self.replication_layer`.
|
|
When we receive PDUs via `get_missing_events`, we have already checked their
sigs, so there is no need to do it again.
|
|
This should be functionally identical: it just seeks to improve readability by
reducing indentation.
|