• 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
..
Makefile Loading commit data...
dialgoogle_test.go Loading commit data...
dnsclient.go Loading commit data...
dnsconfig.go Loading commit data...
dnsmsg.go Loading commit data...
fd.go Loading commit data...
fd_darwin.go Loading commit data...
fd_freebsd.go Loading commit data...
fd_linux.go Loading commit data...
fd_nacl.go Loading commit data...
ip.go Loading commit data...
ip_test.go Loading commit data...
ipsock.go Loading commit data...
net.go Loading commit data...
net_test.go Loading commit data...
parse.go Loading commit data...
parse_test.go Loading commit data...
port.go Loading commit data...
port_test.go Loading commit data...
server_test.go Loading commit data...
sock.go Loading commit data...
tcpsock.go Loading commit data...
timeout_test.go Loading commit data...
udpsock.go Loading commit data...
unixsock.go Loading commit data...