From 93ecf739be220fd17d4c3d3eedfe84f0233b6b2d Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 21 Apr 2015 14:25:01 -0400 Subject: [PATCH] This could be the source of the connection memory leaks, over 1000 connections and only 12 bytes of non-gc-tracked allocations. Kudos to cmeyers for finding this. --- awx/lib/site-packages/socketio/handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/lib/site-packages/socketio/handler.py b/awx/lib/site-packages/socketio/handler.py index e4b972f30a..20dd73e116 100644 --- a/awx/lib/site-packages/socketio/handler.py +++ b/awx/lib/site-packages/socketio/handler.py @@ -205,6 +205,7 @@ class SocketIOHandler(WSGIHandler): del self.websocket.environ del self.websocket if self.environ: + self.environ.pop('wsgi.websocket', None) del self.environ def handle_bad_request(self):