You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebSocket endpoint in Backend/app/routes/chat.py has a resource leak vulnerability where asyncio tasks are cancelled but not properly awaited, preventing cleanup code from executing and potentially leaving Redis pubsub connections open.
In the WebSocket handler's exception blocks, when a WebSocketDisconnect or general Exception occurs, the code cancels the listener_task but does not await it: