-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
I'm not sure if it's a bug or if I just don't understand the implementation, but the current ws server has two tables with connected clients:
---@field clients table A list of connected clients ---@field clients table Table of connected clients (client_id -> WebSocketClient)
It seems like they store the same thing, but they are pretty much out of sync most of the time.
What I see:
- when I open CC terminal, both receive a new client connection (identical)
- when I hit
Ctrl-Cin CC terminal (exit session), its client connection is removed from both tables, but immediately after, a new connection appears inserver/init, but not inserver/tcp.server/initconstantly grows with these phantom connections that appear after each terminated session. I can't figure out what initiates this connection and why it stays in theserver/initclients table.
Is this by design? What initiates this second connection after the session termination?
Metadata
Metadata
Assignees
Labels
No labels