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

Drop resolving listener file descriptor by reflecting private struct fields. #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rndz
Copy link

@rndz rndz commented Aug 24, 2017

Drop resolving listener file descriptor by reflecting private struct fields. Instead we duplicate listener file descriptor, which handles closeOnExec syscalls.

The current implementation uses reflect package, and is prone to break (actually as of go 1.9 it WILL break, because the netFD struct fields have been moved around and sysfd field does not exist anymore, and is reachable instead by pfd poll.FD field).

…fields. Instead we duplicate listener file descriptor, which handles closeOnExec syscalls
@tbaud0n
Copy link

tbaud0n commented Jan 5, 2018

Thanks a lot for this PR. It saved me a lot of debug time.

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.

2 participants