abourget/gevent-socketio — pull request #89 by sv1jsb (2012-09-17 11:22:16+00:00)
Title: Fixing on disconnect memory leaks and socket closing. 

This is a fix for #78 issue. I 've tested it with gunicorn's worker and various browsers. It stops all namespace jobs and socket jobs when a client disconnects either by issuing socket.disconnect() or moving away from the page which initiated the websocket connection.
I' ve checked with "netstat" for open sockets and with "ps -eo rss" for memory leaks. Maybe further tests with different setups are needed to verify fixing it.

I have also changed gunicorn's worker to start the policy-server by default. This way more browsers are able to use websockets and don't fall back to xhr-polling.

Best regards,
Andreas