diff options
author | Russ Cox <rsc@golang.org> | 2010-04-26 22:15:25 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-04-26 22:15:25 -0700 |
commit | 0415bdc67536a8d8c51aa26f2cd9b9cdf2d3967b (patch) | |
tree | 94fb674d518e226f245ba078f44ace74057cd03b /test/syntax/topexpr.go | |
parent | c421356f6cd0b1ae24e49a697f4f135f11a0179a (diff) | |
download | golang-0415bdc67536a8d8c51aa26f2cd9b9cdf2d3967b.tar.gz |
net: 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.
R=r
CC=golang-dev, msolo
http://codereview.appspot.com/957045
Diffstat (limited to 'test/syntax/topexpr.go')
0 files changed, 0 insertions, 0 deletions