Commit 99c7241e authored by Denis Bilenko's avatar Denis Bilenko

wsgi.WSGIServer: make kill() release references of the objects passed to __init__

parent e91c7454
......@@ -179,6 +179,9 @@ class WSGIServer(HTTPServer):
def kill(self):
super(WSGIServer, self).kill()
self.__dict__.pop('application', None)
self.__dict__.pop('log', None)
self.__dict__.pop('environ', None)
self.__dict__.pop('handler_class', None)
def handle(self, req):
handler = self.handler_class(req, self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment