lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

  • Dave Cheney's avatar
    [release-branch.go1] net: fix race between Close and Read · 8b5350b8
    Dave Cheney authored
    ««« backport 5f24ff99b5f1
    net: fix race between Close and Read
    
    Fixes #3507.
    
    Applied the suggested fix from rsc. If the connection
    is in closing state then errClosing will bubble up to
    the caller.
    
    The fix has been applied to udp, ip and unix as well as
    their code path include nil'ing c.fd on close. Func
    tests are available in the linked issue that verified
    the bug existed there as well.
    
    R=rsc, fullung, alex.brainman, mikioh.mikioh
    CC=golang-dev
    https://golang.org/cl/6002053
    »»»
    8b5350b8
udpsock_posix.go 8.83 KB