Skip to content

WebSocket Reconnection Stacking (Frontend) #106

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghighHigh severity bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions