anonymousland-synapse/synapse/api
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
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
auth.py create support user (#4141) 2018-12-14 18:20:59 +00:00
constants.py Merge pull request #4307 from matrix-org/erikj/v2_rooms 2018-12-24 10:48:59 +01:00
errors.py Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
filtering.py fix the check for whether is_url to match all the other ones in codebase (#3405) 2019-01-06 21:43:25 +00:00
ratelimiting.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00
urls.py Remove deprecated v1 key exchange endpoint (#4119) 2018-10-31 22:29:02 +11:00