Skip to content

Linux Sockets: Close with pending synchronous Receive hangs #22901

@geoffkizer

Description

@geoffkizer

If you issue a blocking Receive on a connected socket, and then try to Close it from another thread, the Close call will hang and the Receive will never complete.

This works properly on Windows -- the Close succeeds and the Receive throws a SocketException with errorCode = ConnectionAborted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions