anonymousland-synapse/synapse/federation
Erik Johnston b970cb0e96 Refactor request sending to have better excpetions (#4358)
* Correctly retry and back off if we get a HTTPerror response

* Refactor request sending to have better excpetions

MatrixFederationHttpClient blindly reraised exceptions to the caller
without differentiating "expected" failures (e.g. connection timeouts
etc) versus more severe problems (e.g. programming errors).

This commit adds a RequestSendFailed exception that is raised when
"expected" failures happen, allowing the TransactionQueue to log them as
warnings while allowing us to log other exceptions as actual exceptions.
2019-01-08 11:04:28 +00:00
..
transport Remove the unused /pull federation API (#4118) 2018-10-31 04:24:59 +11:00
__init__.py Remove unused ReplicationLayer 2018-03-13 11:00:04 +00:00
federation_base.py Fix handling of redacted events from federation 2018-09-13 15:44:12 +01:00
federation_client.py more comments 2018-09-27 11:31:51 +01:00
federation_server.py Update synapse/federation/federation_server.py 2018-11-09 11:28:25 +00:00
persistence.py Fix origin handling for pushed transactions 2018-09-05 13:08:07 +01:00
send_queue.py fix #3445 2018-08-29 16:28:25 +02:00
transaction_queue.py Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
units.py Clean up event accesses and tests 2018-11-02 13:44:14 +00:00