gevent-socketio
gevent-socketio copied to clipboard
SocketIOServer.kill() doesn't release the serving thread
Within my app I need to shutdown start/restart gracefully an embedded flask instance.
On the ThreadedWSGIServer counterpart I use shutdown() that works perfectly.
kill() seems to be the equivalent of shutdown() but on SocketIOServer but doesn't work and the serving thread stays in serve_forever
I'm not sure if this is related, but on my runserver_socketio dev server (based on that written by django-socketio), I notice that after a number of page refreshes (eg. socket disconnect/reconnects), the new socket connections become increasingly slow to establish. It "feels" like some resource is not being released - I suspected FD leaks, but stale threads would also be plausible. If I kill the server and restart it, the socket connections are fast again... for a while.
@gbin @dswarbrick Is this still an issue in master? How do you reproduce it?
@dswarbrick @gbin Ping! I want to get this fixed for our next release.