Uvicorn hangs in development --reload mode with 1 worker when 2 simultaneous requests are sent #2300
Unanswered
peteryin21
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When developing locally with Uvicorn in --reload mode, we have started to see an issue where the Uvicorn server hangs and doesn't respond anymore when we our frontend submits 2 concurrent API requests
Command
and the trace logs when we send two api endpoint requests
after which the server becomes unresponsive.
These endpoints are synchronous FastAPI endpoints that make DB query calls.
I confirmed that
Python version: 3.11.1
Uvicorn version: Tried with 0.29.0, 0.28.1, and 0.23.3
FastAPI version: Tried with 0.103.2 and 0.110.1
Anyone experience this or know what might be going on? Let me know if I should open an issue.
Beta Was this translation helpful? Give feedback.
All reactions