-
Notifications
You must be signed in to change notification settings - Fork 14
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
fastwsgi blocks OTHER threads from executing #51
Comments
|
Hi guys !
Is there a cleaner solution ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calling
fastwsgi.run
should block the main thread, but release the GIL, allowing other threads to run (I/O wait). However, the observed behavior is that all threads are blocked, implying the GIL is not released while fastwsgi is waiting (though the actual issue may be different).Observe the difference in behavior with this toy code when using
fastwsgi.run
vs. the development flaskapp.run
In many (most?) apps this would not be an issue, however it makes fastwsgi unusable in any application that requires some sort of background processing, such as my RaspberryPi app that provides a web server, but also listens for button presses.
The text was updated successfully, but these errors were encountered: