diff --git a/error.go b/error.go index 521594bb..a6567eff 100644 --- a/error.go +++ b/error.go @@ -91,7 +91,7 @@ func isBadConn(err error, allowTimeout bool, addr string) bool { if allowTimeout { if netErr, ok := err.(net.Error); ok && netErr.Timeout() { - return !netErr.Temporary() + return false } }