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.
When a handshake status is not
SUCCESSand the drive proceeds to terminate the connection the client returnsConnection closed by peerinstead of the error cause informed by the drive.DeviceLockederror should be added.DEVICE_LOCKEDis a valid status code on secure connections and does not cause the socket to be closed.connect()withDeviceLockedif the device returns statusDEVICE_LOCKEDand the connection is not secured.RemoteError(STATUS_CODE)should be returned with any other status that is notSUCCESS.