summaryrefslogtreecommitdiff
path: root/libgo/go/net/net.go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-13 05:11:45 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-13 05:11:45 +0000
commit86240434eb153c149dbc3d77f4fedf9cffcbfc53 (patch)
treeeb5eccc07097c5fcf940967f33ab84a7d47c96fe /libgo/go/net/net.go
parent9599f526f8b241e01ca4d54b5bff9c2e6f6dd75a (diff)
downloadgcc-86240434eb153c149dbc3d77f4fedf9cffcbfc53.tar.gz
libgo: Update to weekly.2011-12-22.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/net/net.go')
-rw-r--r--libgo/go/net/net.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgo/go/net/net.go b/libgo/go/net/net.go
index 48f0ae791c8..b236dfdb1dd 100644
--- a/libgo/go/net/net.go
+++ b/libgo/go/net/net.go
@@ -157,6 +157,14 @@ func (e *OpError) Timeout() bool {
return ok && t.Timeout()
}
+type timeoutError struct{}
+
+func (e *timeoutError) Error() string { return "i/o timeout" }
+func (e *timeoutError) Timeout() bool { return true }
+func (e *timeoutError) Temporary() bool { return true }
+
+var errTimeout error = &timeoutError{}
+
type AddrError struct {
Err string
Addr string