Closed n1xxk closed 2 years ago
This is behind Nginx.
Websockets should close after the user ends their proxy session or closes their tab.
The Websockets stay open resulting in very high Nginx CPU usage and also UV CPU usage.
This makes my server very slow and shows 99% of UV CPU usage when it is doing nothing
Please make a change when the user closes the WS UV also closes it on the server side.
I think I have fixed it now, I added proxy_socket_keepalive to the Nginx config.
Notes
This is behind Nginx.
Expected Behavior
Websockets should close after the user ends their proxy session or closes their tab.
Current Behavior
The Websockets stay open resulting in very high Nginx CPU usage and also UV CPU usage.
Steps to Reproduce
Context (Environment)
This makes my server very slow and shows 99% of UV CPU usage when it is doing nothing
Detailed Description
Please make a change when the user closes the WS UV also closes it on the server side.