Skip to content

Conversation

@alaviss
Copy link
Collaborator

@alaviss alaviss commented Jul 30, 2020

Comes with this PR is also a SIGPIPE handling contraption.

Fixes #9867

Draft because I can't figure out how to cause SIGPIPE to be raised by the test. This is actually hard.

Comes with this PR is also a SIGPIPE handling contraption.
@alaviss alaviss force-pushed the sigpipeless-shutdown branch from 22d5996 to ca98aa8 Compare July 30, 2020 07:11
@alaviss alaviss marked this pull request as ready for review July 30, 2020 07:11
alaviss added 3 commits July 30, 2020 10:36
macOS sockets have SO_NOSIGPIPE set, so an EPIPE doesn't necessary mean
that a SIGPIPE happened.
@Araq Araq merged commit c619ced into nim-lang:devel Aug 1, 2020
@alaviss alaviss deleted the sigpipeless-shutdown branch August 1, 2020 19:28
mildred pushed a commit to mildred/Nim that referenced this pull request Jan 11, 2021
…lang#15120)

* net: allow close() to ignore SSL failures due to disconnections

Comes with this PR is also a SIGPIPE handling contraption.

* net: don't do selectSigpipe() on macOS

macOS sockets have SO_NOSIGPIPE set, so an EPIPE doesn't necessary mean
that a SIGPIPE happened.

* net: fix alreadyBlocked logic

* net: WSAESHUTDOWN is also a disconnection error
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

Successfully merging this pull request may close these issues.

Long-lived application occasionally dies with SIG_PIPE when calling httpclient.request

2 participants