Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net: how can we know whether TCPConn is active? #12265
Please take a look at https://github.com/golang/go/blob/master/CONTRIBUTING.md, and please use golang-nuts instead.
I think it doesn't work when your socket is configured with TCP fast open protocol. In general, most simple and reliable way is just implementing own, your application-level handshake protocol.