Skip to content

Implement close handshake #103

Closed
@stephenyama

Description

@stephenyama

The package does not implement the closing handshake as required by the RFC. The package closes the network connection after sending the close message. Any pending or future reads return immediately with an error derived from the close message. The application cannot read until a close message is sent by the peer or a timeout.

I didn't realize that this is a problem until recently. I incorrectly assumed that a CloseError represents a received close message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions