From 86240434eb153c149dbc3d77f4fedf9cffcbfc53 Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 13 Jan 2012 05:11:45 +0000 Subject: libgo: Update to weekly.2011-12-22. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183150 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/go/net/net.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libgo/go/net/net.go') 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 -- cgit v1.2.1