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

@hellojukay
Copy link

What did you do?

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

@bradfitz
Copy link
Contributor

bradfitz 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 as completed 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.
Projects
None yet
Development

No branches or pull requests

3 participants