MatrixSynapse/synapse/rest/media/v1
Andrew Morgan 3e58ce72b4
Don't bother responding to client requests that have already disconnected (#8465)
This PR ports the quick fix from https://github.com/matrix-org/synapse/pull/2796 to further methods which handle media, URL preview and `/key/v2/server` requests. This prevents a harmless `ERROR` that comes up in the logs when we were unable to respond to a client request when the client had already disconnected. In this case we simply bail out if the client has already done so.

This is the 'simple fix' as suggested by https://github.com/matrix-org/synapse/issues/5304#issuecomment-574740003.

Fixes https://github.com/matrix-org/synapse/issues/6700
Fixes https://github.com/matrix-org/synapse/issues/5304
2020-10-06 10:03:39 +01:00
..
__init__.py
_base.py Don't bother responding to client requests that have already disconnected (#8465) 2020-10-06 10:03:39 +01:00
config_resource.py
download_resource.py
filepath.py
media_repository.py fix a logging error in thumbnailer (#8435) 2020-10-01 13:34:24 +01:00
media_storage.py Fix bug in remote thumbnail search (#8438) 2020-10-02 12:29:29 +01:00
preview_url_resource.py Add type annotations to SimpleHttpClient (#8372) 2020-09-24 15:47:20 +01:00
storage_provider.py
thumbnail_resource.py
thumbnailer.py Fix typos in comments. 2020-09-14 11:46:58 -04:00
upload_resource.py Discard an empty upload_name before persisting an uploaded file (#7905) 2020-09-29 12:15:27 -04:00