net: accept <addr>: use of closed network connection #27998
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Darwin
release-blocker
Milestone
What version of Go are you using (
go version
)?go version go1.11 darwin/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?amd64/darwin
What did you do?
server, err := net.Listen("tcp", "localhost:0")
followed by severalconn, err := server.Accept()
/conn.Close()
pairs in a row.What did you expect to see?
No errors.
What did you see instead?
Once in every ~10 tests or so,
server.Accept()
returns something likeaccept 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 calledserver.Close()
?The text was updated successfully, but these errors were encountered: