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

Running in debug mode requires monkey patching #66

Closed
miguelgrinberg opened this issue Oct 28, 2014 · 2 comments
Closed

Running in debug mode requires monkey patching #66

miguelgrinberg opened this issue Oct 28, 2014 · 2 comments
Labels

Comments

@miguelgrinberg
Copy link
Owner

In #55 I have removed monkey patching. But based on #65 it appears Flask needs monkey patching when it runs the reloader.

I need to investigate how can the reloader be used without monkey patching.

@lukeyeager
Copy link
Contributor

Actually, for me I only needed monkey patching when flask was _not_ running the reloader. When I ran with app.debug=False, all of my HTTP requests just stalled out. This surprised me enough that I thought I'd let you know.

But adding patch_all() fixed it anyway. Thanks!

@miguelgrinberg
Copy link
Owner Author

@lukeyeager are you doing anything out of the ordinary in your routes? There are certain libraries that may require monkey patching to work well with the gevent server.

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