summaryrefslogtreecommitdiff
path: root/libgo/go/net/pipe.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/pipe.go')
-rw-r--r--libgo/go/net/pipe.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/net/pipe.go b/libgo/go/net/pipe.go
index 9177fc40364..8cc127464b1 100644
--- a/libgo/go/net/pipe.go
+++ b/libgo/go/net/pipe.go
@@ -6,6 +6,7 @@ package net
import (
"io"
+ "os"
"sync"
"time"
)
@@ -84,6 +85,10 @@ func (timeoutError) Error() string { return "deadline exceeded" }
func (timeoutError) Timeout() bool { return true }
func (timeoutError) Temporary() bool { return true }
+func (timeoutError) Is(target error) bool {
+ return target == os.ErrTemporary || target == os.ErrTimeout
+}
+
type pipeAddr struct{}
func (pipeAddr) Network() string { return "pipe" }