• Adam Langley's avatar
    net: remove race condition on Close. · ef8f483c
    Adam Langley authored
    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 #143.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/152130
    ef8f483c
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
pkg Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...