Merge pull request #2475 from imachug/gevent-ws-fix2

Disable process_result on websocket requests
This commit is contained in:
ZeroNet 2020-03-16 16:16:47 +01:00 committed by GitHub
commit f749228a2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,3 +254,8 @@ class WebSocketHandler(WSGIHandler):
finally: finally:
self.time_finish = time.time() self.time_finish = time.time()
self.log_request() self.log_request()
def process_result(self):
if "wsgi.websocket" not in self.environ:
super(WebSocketHandler, self).process_result()