-
Notifications
You must be signed in to change notification settings - Fork 29
Stale connections are never closed #24
Copy link
Copy link
Closed
Description
In my server I'm finding that there can be some stale connections which are never cleaned up. I'm not sure how to handle these.
One idea is to ping all the connections every X minutes. In this loop I could send a ping to any suspected-dead connections. However, I don't know how to tell if the connection sends a pong back.
It would be great if each WebsocketConnection could have a timestamp which shows the last time any data was received from the connection (including a pong). Then it would be easy to detect a dead connection.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels