Descriptionnet: fix race between Close and Read
Fixes issue 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.
Patch Set 1 #Patch Set 2 : diff -r 762426ee0cca https://code.google.com/p/go #Patch Set 3 : diff -r 762426ee0cca https://code.google.com/p/go #Patch Set 4 : diff -r 762426ee0cca https://code.google.com/p/go #Patch Set 5 : diff -r f6e1ee2d8cd1 https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 6 : diff -r b25d41fa3e5f https://go.googlecode.com/hg/ #
MessagesTotal messages: 16
|