Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting SO_NOSIGPIPE on Socket for BSD derivatives #41

Open
pinver opened this issue Jun 18, 2020 · 1 comment
Open

Setting SO_NOSIGPIPE on Socket for BSD derivatives #41

pinver opened this issue Jun 18, 2020 · 1 comment

Comments

@pinver
Copy link

pinver commented Jun 18, 2020

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.

@schveiguy
Copy link
Owner

I'll look into allowing this as an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants