• Russ Cox's avatar
    net: use chan bool instead of chan *netFD to avoid cycle · caa149f7
    Russ Cox authored
    The cycle is *netFD -> cw chanl *netFD in struct ->
    same *netFD in channel read buffer.
    
    Because channels are finalized, the cycle makes them
    uncollectable.  A better fix is to make channels not
    finalized anymore, and that will happen, but this is
    an easy, reasonable workaround until then.
    
    Another good fix would be to zero the channel receive
    buffer entry after the receive.  That too will happen.
    
    R=r
    CC=golang-dev
    https://golang.org/cl/875043
    caa149f7
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...
hosts.go Loading commit data...
hosts_test.go Loading commit data...
hosts_testdata 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...