Allow for graceful handling when port is already occupied #2678
Unanswered
nkitsaini
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
Uh oh!
There was an error while loading. Please reload this page.
-
I start uvicorn within same process as my application code using
uvicorn.Server.serve()
. If the port on which univcorn is supposed to run is already occupied, uvicorn exits the whole process.The behavior makes sense when uvicorn is running as a standalon process but if not it would ideally be better if I can handle the error gracefully in my application code.
This can be a boolean parameter on config I think.
Beta Was this translation helpful? Give feedback.
All reactions