Skip to content

Timeout during readPacketOrTimeout() results in indeterminate state. #5

@aarontabor

Description

@aarontabor

Currently, the readPacketOrTimeout() discards the partially read packet when it aborts due to a timeout. This leaves the communication channel in an essentially broken state, since a packet has essentially been discarded and there is no easy/reliable way to tell where the next packet begins.

Proposed solution

Instead of discarding the partially read packet, buffer it in an instance variable so that the read can be resumed in a subsequent call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions