Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Setting SO_NOSIGPIPE on Socket for BSD derivatives #41

@pinver

Description

@pinver

Under macOS, for example, If the socket for whatever reason is closed, you end up in the SIGPIPE handler.

Setting the SO_NOSIGPIPE option will instruct the OS to not generate SIGPIPE, but instead return EPIPE, which can be handled gracefully along with other IO errors.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions