From 3f6301b587262678197a0739bf3a40859ceaa9a1 Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Wed, 30 Nov 2016 17:43:04 +0800 Subject: [PATCH] remove timeout for replicating large image --- src/common/utils/registry/repository.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/utils/registry/repository.go b/src/common/utils/registry/repository.go index 890605caa..5ce981a00 100644 --- a/src/common/utils/registry/repository.go +++ b/src/common/utils/registry/repository.go @@ -25,7 +25,7 @@ import ( "net/url" "strconv" "strings" - "time" + // "time" "github.com/docker/distribution/manifest/schema1" "github.com/docker/distribution/manifest/schema2" @@ -65,7 +65,8 @@ func NewRepositoryWithModifiers(name, endpoint string, insecure bool, modifiers transport := NewTransport(GetHTTPTransport(insecure), modifiers...) return NewRepository(name, endpoint, &http.Client{ Transport: transport, - Timeout: 30 * time.Second, + // for transferring large image, OS will handle i/o timeout + // Timeout: 30 * time.Second, }) }