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

SIGPIPE and openssl #1

Open
ikod opened this issue Jun 2, 2020 · 0 comments
Open

SIGPIPE and openssl #1

ikod opened this issue Jun 2, 2020 · 0 comments

Comments

@ikod
Copy link
Owner

ikod commented Jun 2, 2020

we receive sigpipe when we write into the closed socket.
there is several ways to handle it:

  1. signal(SIGPIPE, SIG_IGN) - platform independent
  2. use flag MSG_NOSIGNAL with send() - linux
  3. setockopt(NO_SIGPIPE) on osx
    Linux solution requires access to each socket write which require BIO calls for openssl.
    For now I'll use solution SIGPIPE and openssl #1.

https://blog.erratasec.com/2018/10/tcpip-sockets-and-sigpipe.html

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

No branches or pull requests

1 participant