Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: net: add Control-only SyscallConn to Listeners #22065
Go 1.9 added RawConn to some net.Conns, allowing access to the OS' FD. It seems like a similar function could be added to Listeners.
We have a use case where we'd like to set a sockopt on a TCPListener, which could be simplified by being able to call TCPListener.RawConn (or similar) with the same semantics as for net.Conn.
cc @mikioh (?)