From f8b891c5e75a5f4c29be126aa94fcafee07cb6df Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 28 Nov 2018 20:09:39 +0000 Subject: Reduce size of fed transaction IDs --- synapse/http/endpoint.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'synapse/http') diff --git a/synapse/http/endpoint.py b/synapse/http/endpoint.py index 91025037a3..df528113a4 100644 --- a/synapse/http/endpoint.py +++ b/synapse/http/endpoint.py @@ -194,8 +194,11 @@ class _WrappedConnection(object): # In Twisted >18.4; the TLS connection will be None if it has closed # which will make abortConnection() throw. Check that the TLS connection # is not None before trying to close it. - if self.transport.getHandle() is not None: - self.transport.abortConnection() + try: + if self.transport.getHandle() is not None: + self.transport.abortConnection() + except: + logger.warning("Failed to abort connection") def request(self, request): self.last_request = time.time() -- cgit 1.5.1