Commits

Anonymous committed 9f7ba7f

Fix memory leak caused by circular references in greenlet.

Comments (0)

Files changed (1)

geventwebsocket/handler.py

             del self.server.clients[self.client_address]
             if not self.websocket.closed:
                 self.websocket.close()
+            self.environ.update({
+                'wsgi.websocket': None
+            })
+            self.websocket = None
 
     def run_application(self):
         if (hasattr(self.server, 'pre_start_hook')