Skip to content

WebSocket Reconnection Stacking (Frontend) #106

@xingjianll

Description

@xingjianll

File: frontend/src/hooks/useUIChannel.ts:35-39

The onclose handler calls setTimeout(connect, 1000) without tracking pending timeouts. Multiple disconnects schedule multiple connect() calls, leading to parallel WebSocket connections.

Impact: Connection storms after network instability; duplicate message delivery; memory leaks from abandoned socket objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghighHigh severity bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions