forked-synapse/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 copyrights 2016-01-07 04:26:29 +00:00
_base.py Fix Content-Disposition in media repository (#4176) 2018-11-15 15:55:58 -06:00
config_resource.py Move imports to one line 2018-12-10 13:52:33 +00:00
download_resource.py Add 'sandbox' to CSP for media repo (#4284) 2018-12-11 04:05:02 +11:00
filepath.py run isort 2018-07-09 16:09:20 +10:00
media_repository.py Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
media_storage.py Correctly account for cpu usage by background threads (#4074) 2018-10-23 13:12:32 +01:00
preview_url_resource.py Fix IP URL previews on Python 3 (#4215) 2018-12-22 01:56:13 +11:00
storage_provider.py Correctly account for cpu usage by background threads (#4074) 2018-10-23 13:12:32 +01:00
thumbnail_resource.py run isort 2018-07-09 16:09:20 +10:00
thumbnailer.py run isort 2018-07-09 16:09:20 +10:00
upload_resource.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00