synapse-product/synapse/rest
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
..
admin Remove stream ordering from Metadata dict (#8452) 2020-10-05 14:43:14 +01:00
client Convert additional templates to Jinja (#8444) 2020-10-02 11:15:53 +01:00
consent Remove unnecessary maybeDeferred calls (#8044) 2020-08-07 09:44:48 -04:00
key Fix typos in comments. 2020-09-14 11:46:58 -04:00
media Don't bother responding to client requests that have already disconnected (#8465) 2020-10-06 10:03:39 +01:00
oidc Merge different Resource implementation classes (#7732) 2020-07-03 19:02:19 +01:00
saml2 Improve SAML error messages (#8248) 2020-09-14 09:05:36 -04:00
synapse Show a confirmation page during user password reset (#8004) 2020-09-10 11:45:12 +01:00
__init__.py Show a confirmation page during user password reset (#8004) 2020-09-10 11:45:12 +01:00
health.py Add health check endpoint (#8048) 2020-08-07 14:21:24 +01:00
well_known.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00