Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

No close after CloseSent #23

@raffaeler

Description

@raffaeler

During a debugging session (where everything is slow) I could verify a situation that lead to the OnDisconnected not being ever sent.

  • The channel was broken because of a long timeout (due to debugging)
  • OnTransportError was called
    After waiting for a very long time, the OnDisconnected was never called
    At this point I tried to send a message to the client and I could verify the status of the connection was "CloseSent".

I believe the channel should always call OnDisconnected even if the worst cases when the client cannot be reached anymore.

Also, please consider implementing IDisposable in the WebSockeConnection, exposing the overridable Dispose(bool) (as for dispose pattern) so that disposable resources in derived classes can close the lifecycle of any custom resources.

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