Skip to content

Improve error reporting for connections terminated remotely. #26

@icorderi

Description

@icorderi

When a handshake status is not SUCCESS and the drive proceeds to terminate the connection the client returns Connection closed by peer instead of the error cause informed by the drive.

  • A specific DeviceLocked error should be added.
  • DEVICE_LOCKED is a valid status code on secure connections and does not cause the socket to be closed.
  • A client should fail during connect() with DeviceLocked if the device returns status DEVICE_LOCKED and the connection is not secured.
  • The generic RemoteError(STATUS_CODE) should be returned with any other status that is not SUCCESS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions