Skip to content

Race condition leads to SIGPIPE when sending on a closed socket #14

Description

@michaelrfraser

There is currently the possibility of one thread closing a socket, while another thread is trying to call send() on it. Under Linux, this results in a SIGPIPE.

I've tried some basic locking to get around it, but to no avail. Logging an issue for a more detailed look in the future.

See commented TODOs in SocketTest.cpp for more reproduction steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions