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

RuntimeError causes app to stop processing requests #41

Open
nvtkaszpir opened this issue May 3, 2024 · 0 comments
Open

RuntimeError causes app to stop processing requests #41

nvtkaszpir opened this issue May 3, 2024 · 0 comments
Milestone

Comments

@nvtkaszpir
Copy link
Contributor

nvtkaszpir commented May 3, 2024

Describe the bug
the issues are caused by werkzeug lib,when running python app.py and when doing too much operations/requests then it ends in some race condtition.
This ends with RuntimeError, after which no futher web requests are processed - new connections are accepted but hang indefinetly.

To Reproduce
Steps to reproduce the behavior:

  1. python app.py
  2. run apache bench/locust whatever (even while true; curl http://127.0.0.1:8080/snapshot;done in 5 terminals should be enough
  3. see how app dies after about 15s

Expected behavior
Processing is properly handled, no errors.

Screenshots
No screesnhots

Desktop (please complete the following information):
Ubuntu 22.04 + any browser/curl

Smartphone (please complete the following information):
N/A

Additional context

Possible fix
switch to gunicorn, havent tested but it probably handles this much better but with --worker 1

@monkeymademe monkeymademe added this to the v1.0.16 milestone Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants