• Russ Cox's avatar
    net: avoid Shutdown during Close · 5e4e3d8e
    Russ Cox authored
    Once we've evicted all the blocked I/O, the ref count
    should go to zero quickly, so it should be safe to
    postpone the close(2) until then.
    
    Fixes #1898.
    Fixes #2116.
    Fixes #2122.
    
    R=golang-dev, mikioh.mikioh, bradfitz, fullung, iant
    CC=golang-dev
    https://golang.org/cl/5649076
    5e4e3d8e
sockoptip_darwin.go 2.28 KB