To fetch socket programmatically in Uvicorn. #1703
Answered
by
Kludex
anuragsrivstv
asked this question in
Q&A
-
Hi all, I'm doing a migration of a codebase from Gunicorn to Uvicorn , mainly because of the fact that Uvicorn is windows compatible. There are some unit test scenario in which we want to close the socket explicitly if an exception occurs while invoking a get request(Flask server). We were able to do it in gunicorn as it has gunicorn.socket in request environment variable. Is there any way in Uvicorn to fetch the socket and close it explicitly ? |
Beta Was this translation helpful? Give feedback.
Answered by
Kludex
Jan 1, 2023
Replies: 2 comments
-
Hey, I'm interested in this too. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#761 (comment)