forked-synapse/synapse/http
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 redact better 2018-09-14 03:45:34 +10:00
additional_resource.py run isort 2018-07-09 16:09:20 +10:00
client.py Fix IP URL previews on Python 3 (#4215) 2018-12-22 01:56:13 +11:00
endpoint.py Fix IP URL previews on Python 3 (#4215) 2018-12-22 01:56:13 +11:00
matrixfederationclient.py Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
request_metrics.py Make the metrics less racy (#4061) 2018-10-19 21:45:45 +11:00
server.py Fix URL preview bugs (type error when loading cache from db, content-type including quotes) (#4157) 2018-11-08 01:37:43 +11:00
servlet.py fix parse_string docstring 2018-11-08 11:12:29 +00:00
site.py Fix error when logging incomplete requests 2018-10-02 12:06:22 +01:00