Skip to content

Stale connections are never closed #24

@bridger

Description

@bridger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions