Descriptionnet: introduce net.Error interface
Adds two more methods, Timeout and Temporary.
Implemented by os.Errno too. The intent is to make
the checks for os.EAGAIN a little less clunky.
It should also let us clean up a bug that Mike Solomon
pointed out: if a network server gets an "out of file descriptors"
error from Accept, the listener should not stop.
It will be able to check this because that error would
have Temporary() == true.
Also clean up some underscore names.
Fixes issue 442.
Patch Set 1 #Patch Set 2 : code review 957045: net: introduce net.Error interface #Patch Set 3 : code review 957045: net: introduce net.Error interface #Patch Set 4 : code review 957045: net: introduce net.Error interface #Patch Set 5 : code review 957045: net: introduce net.Error interface #Patch Set 6 : code review 957045: net: introduce net.Error interface #
MessagesTotal messages: 8
|