Replies: 1 comment 2 replies
-
I think without you showing code (as minimal as possible to reproduce your problem) it's unlikely that someone can help you... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Flask application with a gevent server and an Nginx reverse proxy. (Additional info: the app runs on a Windows EC2 instance and uses a MySQL database). This is my first Flask app and it works well, that is, most of the times.
But the application often freezes and the browser clients time out. The only remedy is to press CTRL+C on the application console. When I do that, all the pending requests arrive in a flood, as if some queue has burst open.
My questions are: (1) Under what circumstances is this possible ? (2) More importantly, how to debug the main loop - Where to insert log events or probe the internals of the app, so that I can locate where exactly the requests are held up?
Beta Was this translation helpful? Give feedback.
All reactions