Skip to content

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