MatrixSynapse/synapse/rest/media/v1
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
_base.py
config_resource.py
download_resource.py Add 'sandbox' to CSP for media repo (#4284) 2018-12-11 04:05:02 +11:00
filepath.py
media_repository.py Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
media_storage.py
preview_url_resource.py Fix IP URL previews on Python 3 (#4215) 2018-12-22 01:56:13 +11:00
storage_provider.py
thumbnail_resource.py
thumbnailer.py
upload_resource.py