summary refs log tree commit diff
path: root/synapse/app/federation_sender.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Run Prometheus on a different port, optionally. (#3274)Amber Brown2018-05-311-1/+9
|
* Set Server header in SynapseRequestRichard van der Hoff2018-05-101-0/+1
| | | | | | | | | | | | (instead of everywhere that writes a response. Or rather, the subset of places which write responses where we haven't forgotten it). This also means that we don't have to have the mysterious version_string attribute in anything with a request handler. Unfortunately it does mean that we have to pass the version string wherever we instantiate a SynapseSite, which has been c&ped 150 times, but that is code that ought to be cleaned up anyway really.
* Merge remote-tracking branch 'origin/develop' into rav/use_run_in_backgroundRichard van der Hoff2018-04-271-12/+15
|\
| * Improve exception handling for background processesRichard van der Hoff2018-04-271-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were a bunch of places where we fire off a process to happen in the background, but don't have any exception handling on it - instead relying on the unhandled error being logged when the relevent deferred gets garbage-collected. This is unsatisfactory for a number of reasons: - logging on garbage collection is best-effort and may happen some time after the error, if at all - it can be hard to figure out where the error actually happened. - it is logged as a scary CRITICAL error which (a) I always forget to grep for and (b) it's not really CRITICAL if a background process we don't care about fails. So this is an attempt to add exception handling to everything we fire off into the background.
* | Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-271-2/+2
|/ | | | | | While I was going through uses of preserve_fn for other PRs, I converted places which only use the wrapped function once to use run_in_background, to avoid creating the function object.
* 404 correctly on missing paths via NoResourceMatthew Hodgson2018-03-231-2/+2
| | | | fixes https://github.com/matrix-org/synapse/issues/2043 and https://github.com/matrix-org/synapse/issues/2029
* Factor out get_db_conn to HomeServer base classRichard van der Hoff2018-01-261-13/+0
| | | | | This function is identical to all subclasses, so we may as well push it up to the base class to reduce duplication (and make use of it in the tests)
* Implement listen_tcp method in remaining workersSilke2017-12-181-21/+17
| | | | Signed-off-by: Silke <silke@slxh.eu>
* Factor out common application startRichard van der Hoff2017-08-151-44/+13
| | | | | We have 10 copies of this code, and I don't really want to update each one separately.
* Initial worker implErik Johnston2017-06-161-1/+1
|
* Move get_presence_list_* to SlaveStoreErik Johnston2017-04-111-13/+2
|
* Reduce federation presence replication trafficErik Johnston2017-04-101-0/+12
| | | | | | | | This is mainly done by moving the calculation of where to send presence updates from the presence handler to the transaction queue, so we only need to send the presence event (and not the destinations) across the replication connection. Before we were duplicating by sending the full state across once per destination.
* Fix up federation SendQueue and document typesErik Johnston2017-04-071-65/+1
|
* Don't double json encode federation replication dataErik Johnston2017-04-051-3/+1
|
* Add commentErik Johnston2017-04-041-0/+5
|
* Add the appropriate amount of preserve_fnErik Johnston2017-04-041-2/+2
|
* Move where we ack federationErik Johnston2017-04-041-7/+16
|
* Update all the workers and master to use TCP replicationErik Johnston2017-04-031-48/+62
|
* Run the reactor with the sentinel logcontextRichard van der Hoff2017-03-181-2/+6
| | | | | | This fixes a class of 'Unexpected logcontext' messages, which were happening because the logcontext was somewhat arbitrarily swapping between the sentinel and the `run` logcontext.
* Refactor logger config for workersRichard van der Hoff2017-03-101-1/+1
| | | | - to make it easier to add more config options.
* Hook device list updates to replicationErik Johnston2017-01-271-1/+2
|
* Restore default bind addressErik Johnston2017-01-101-10/+2
|
* Fix check for bind_addressJohannes Löthberg2016-12-201-2/+2
| | | | | | | The empty string is a valid setting for the bind_address option, so explicitly check for None here instead. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Add support for specifying multiple bind addressesJohannes Löthberg2016-12-181-20/+34
| | | | Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* CommentErik Johnston2016-11-231-0/+3
|
* Explicit federation ackErik Johnston2016-11-231-1/+4
|
* CommentsErik Johnston2016-11-211-0/+12
|
* Store federation stream positions in the databaseErik Johnston2016-11-211-16/+22
|
* Handle sending events and device messages over federationErik Johnston2016-11-171-13/+18
|
* Hook up the send queue and create a federation sender workerErik Johnston2016-11-161-0/+302