Descriptionnet: remove race condition on Close.
Previously a netFd could be queued for reading/writing in the channel,
but close(2)'ed before pollServer got to it. In this case, the kernel
would consider the descriptor closed and the attempt to add it to the
epoll set would fail and panic.
This patch makes Close a roundtrip to the pollServer, although the
actual close(2) still occurs elsewhere to avoid blocking the
pollServer.
Fixes issue 143.
Patch Set 1 #Patch Set 2 : code review 152130: net: remove race condition on Close. #
Total comments: 1
Patch Set 3 : code review 152130: net: remove race condition on Close. #MessagesTotal messages: 4
|