Skip to content

C#: broken socket connection not handled: lock-up #187

@lxop

Description

@lxop

The BufferedSocketAdapter.ReceiveData() method doesn't handle the case where socket.Receive() returns zero (i.e., socket is closed). This means that if the socket gets closed (e.g., RoboDK crashed), this method gets stuck in an infinite loop. I just encountered this, so it is definitely not just a hypothetical risk.

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