• Dave Cheney's avatar
    net: remove unused nil check · 0bfece06
    Dave Cheney authored
    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
    0bfece06
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc 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...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...