Skip to content
This repository was archived by the owner on Jun 27, 2022. It is now read-only.
This repository was archived by the owner on Jun 27, 2022. It is now read-only.

CloneableSocket recv() not understanding closed connections #6

@ned14

Description

@ned14

I am calling close() on a CloneableSocket but it does not appear to cause reads in the other side CloneableSocket to exit with an Err. This is because CloneableSocket's recv() is missing the same closed connection detection logic as UtpSocket's recv_form().

The other thing we need is to detect ungraceful connection close. Either a heartbeat, or a timeout since last packet received would work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions