Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling reloader results in hang on KeyboardInterrupt #449

Closed
datspike opened this issue Apr 25, 2017 · 1 comment
Closed

Disabling reloader results in hang on KeyboardInterrupt #449

datspike opened this issue Apr 25, 2017 · 1 comment
Labels

Comments

@datspike
Copy link

datspike commented Apr 25, 2017

If I'll run example with socketio.run(app, use_reloader=False) and close the script before any client connects to the server everything is fine, no exceptions is occuring
If I'll open the example page and than stop the script by Ctrl-C it hangs on wsgi exiting
Debugger shows that execution is waiting for rougtly 60 seconds and loops on 63 line of epolls.py (eventlet/hubs/epolls.py)
def do_poll(self, seconds): return self.poll.poll(seconds)
Is this behaviour is ok?

@miguelgrinberg
Copy link
Owner

It's not an okay behavior, but it's also not a problem caused by this service. Not having a clean interrupt handler is a fairly common issue with web servers. I've seen the problem you mention in eventlet, and other somewhat similar problems in gevent, uwsgi, werkzeug, sanic, etc. See #199.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants