anonymousland-synapse/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 copyrights 2016-01-07 04:26:29 +00:00
_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 Merge different Resource implementation classes (#7732) 2020-07-03 19:02:19 +01:00
download_resource.py Merge different Resource implementation classes (#7732) 2020-07-03 19:02:19 +01:00
filepath.py Include method in thumbnail media name (#7124) 2020-09-08 17:19:50 +01:00
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 Fix async/await calls for broken media providers. (#8027) 2020-08-04 09:44:25 -04:00
thumbnail_resource.py Do not error when thumbnailing invalid files (#8236) 2020-09-09 12:59:41 -04:00
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