MatrixSynapse/tests
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
..
api
app
appservice
config
crypto
events
federation
handlers
http Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
push
replication
rest
scripts
server_notices
state
storage create support user (#4141) 2018-12-14 18:20:59 +00:00
util
__init__.py
patch_inline_callbacks.py
server.py
test_distributor.py
test_dns.py
test_event_auth.py
test_federation.py
test_mau.py
test_metrics.py
test_preview.py
test_server.py
test_state.py
test_terms_auth.py
test_test_utils.py
test_types.py
test_visibility.py
unittest.py
utils.py