Clean up after request handler
We need to call the base class after a request is finished in order to clean up things properly. E.g. closing the socket file descriptor.
This commit is contained in:
parent
193c7e6181
commit
e5e1dcef79
|
@ -288,6 +288,7 @@ class WebSockifyRequestHandler(WebSocketRequestHandler, SimpleHTTPRequestHandler
|
||||||
if self.rec:
|
if self.rec:
|
||||||
self.rec.write("'EOF'];\n")
|
self.rec.write("'EOF'];\n")
|
||||||
self.rec.close()
|
self.rec.close()
|
||||||
|
WebSocketRequestHandler.finish(self)
|
||||||
|
|
||||||
def handle(self):
|
def handle(self):
|
||||||
# When using run_once, we have a single process, so
|
# When using run_once, we have a single process, so
|
||||||
|
|
Loading…
Reference in New Issue