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

net: File and SyscallConn methods on {TCP,Unix}Listener to get file descriptors #23357

Closed
hellojukay opened this issue Jan 6, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@hellojukay
Copy link

commented Jan 6, 2018

What did you do?

fork http server, i want to get listenser`s fd to share with child process!

@bradfitz

This comment has been minimized.

Copy link
Member

commented Jan 6, 2018

Go 1.10 has https://tip.golang.org/pkg/net/#TCPListener.SyscallConn which might help.

Questions are best sent to one of the forums, though. See https://golang.org/wiki/Questions.

@bradfitz bradfitz closed this Jan 6, 2018

@mikioh mikioh changed the title net.Listenerr get File descriptor net: File and SyscallConn methods on {TCP,Unix}Listener to get file descriptors Jan 7, 2018

@golang golang locked and limited conversation to collaborators Jan 7, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.