|
|
|
@ -25,7 +25,6 @@ import ( |
|
|
|
|
"net/url" |
|
|
|
|
"path" |
|
|
|
|
"strconv" |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
"encoding/gob" |
|
|
|
|
"encoding/hex" |
|
|
|
@ -38,10 +37,6 @@ import ( |
|
|
|
|
xnet "github.com/minio/minio/pkg/net" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// The timeout of TCP connect and sending/receiving
|
|
|
|
|
// data for all internode storage REST requests.
|
|
|
|
|
const storageRESTTimeout = 5 * time.Minute |
|
|
|
|
|
|
|
|
|
func isNetworkError(err error) bool { |
|
|
|
|
if err == nil { |
|
|
|
|
return false |
|
|
|
@ -405,7 +400,7 @@ func newStorageRESTClient(endpoint Endpoint) (*storageRESTClient, error) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
restClient, err := rest.NewClient(serverURL, tlsConfig, storageRESTTimeout, newAuthToken) |
|
|
|
|
restClient, err := rest.NewClient(serverURL, tlsConfig, rest.DefaultRESTTimeout, newAuthToken) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|