Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
What did you do?
server, err := net.Listen("tcp", "localhost:0") followed by several conn, err := server.Accept() / conn.Close() pairs in a row.
What did you expect to see?
What did you see instead?
Once in every ~10 tests or so, server.Accept() returns something like accept tcp 127.0.0.1:49613: use of closed network connection. I'm not sure what this error means: how can Accept state that the "network connection" is closed when its job is to establish (not use) a connection? Is the listener dead somehow? How is that possible without me having called server.Close()?