diff options
author | Erik Johnston <erik@matrix.org> | 2018-09-20 13:44:20 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-09-20 13:44:20 +0100 |
commit | b28a7ed5030148139af6c6c03e635b068a6eae15 (patch) | |
tree | 333d1af966f4dc154d94de214a8e967ca9bfbd8f | |
parent | Merge pull request #3914 from matrix-org/erikj/remove_retry_cache (diff) | |
download | synapse-b28a7ed5030148139af6c6c03e635b068a6eae15.tar.xz |
Fix spurious exceptions when client closes conncetion
If a HTTP handler throws an exception while processing a request we automatically write a JSON error response. If the handler had already started writing a response twisted throws an exception. We should check for this case and simple abort the connection if there was an error after the response had started being written.
-rw-r--r-- | synapse/http/server.py | 49 |
1 files changed, 35 insertions, 14 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py |