--limit-max-requests does not reload Workers if only Websocket Client connected #2146
Unanswered
lesc6
asked this question in
Potential Issue
Replies: 2 comments
-
This is a real problem for WebSocket handlers without http requests as there is no any built-in ability to reload workers and clean memory. I understand, this does not work with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how reproduce Issue:
uvicorn --host=0.0.0.0 --port=8000 --limit-max-requests=5 --workers=1
Use any Websocket Client:
you expect that Worker process will be killed after N WebSocket connection, but it will never killed and it consume more and more memory.
as far as I understand, when a WebSocket connection is established, it does not consider it as request.
Beta Was this translation helpful? Give feedback.
All reactions