Merge pull request #1240 from ScorpioCPH/remove-http-timeout-on-getting-catalog

Remove http timeout option on getting catalog
This commit is contained in:
Daniel Jiang 2016-12-14 14:36:32 +08:00 committed by GitHub
commit 2585b5d4e7

View File

@ -20,7 +20,7 @@ import (
"net/http"
"net/url"
"strings"
"time"
// "time"
"github.com/vmware/harbor/src/common/utils"
registry_error "github.com/vmware/harbor/src/common/utils/registry/error"
@ -77,7 +77,9 @@ func NewRegistryWithModifiers(endpoint string, insecure bool, modifiers ...Modif
return NewRegistry(endpoint, &http.Client{
Transport: transport,
Timeout: 30 * time.Second,
// If there are hunderds of repositories in docker registry,
// timeout option will abort HTTP request on getting catalog
// Timeout: 30 * time.Second,
})
}