]> Cypherpunks repositories - gostls13.git/commit
net: remove unused nil check
authorDave Cheney <dave@cheney.net>
Sun, 18 Nov 2012 04:31:26 +0000 (15:31 +1100)
committerDave Cheney <dave@cheney.net>
Sun, 18 Nov 2012 04:31:26 +0000 (15:31 +1100)
commit0bfece06d7e19b3caba6f1ee0a202e0c90fda23b
treea1c4836b550df41684cdcfd057e54da36d3caa5c
parent4758f89ddbd2c04e7ae1645758495794c34fc5eb
net: remove unused nil check

This is part 1 of a series of proposals to fix issue 4369.

In resolving issue 3507 it was decided not to nil out the inner conn.fd field to avoid a race. This implies the checks for fd == nil inside incref/decref are never true.

Removing this logic removes one source of errClosing error values, which affects issue 4373 and moves towards bradfitz's request that fd.accept() return io.EOF when closed concurrently.

Update #4369.
Update #4373.

R=mikioh.mikioh, bradfitz, dvyukov, rsc
CC=golang-dev
https://golang.org/cl/6852057
src/pkg/net/fd_unix.go
src/pkg/net/unixsock_posix.go