anonymousland-synapse/synapse/rest/media
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
..
v0 Port rest/ to Python 3 (#3823) 2018-09-12 20:41:31 +10:00
v1 Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
__init__.py Move rest APIs back under the rest directory 2015-01-22 16:10:07 +00:00