mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
remove timeout for replicating large image
This commit is contained in:
parent
c214d37250
commit
3f6301b587
@ -25,7 +25,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
// "time"
|
||||||
|
|
||||||
"github.com/docker/distribution/manifest/schema1"
|
"github.com/docker/distribution/manifest/schema1"
|
||||||
"github.com/docker/distribution/manifest/schema2"
|
"github.com/docker/distribution/manifest/schema2"
|
||||||
@ -65,7 +65,8 @@ func NewRepositoryWithModifiers(name, endpoint string, insecure bool, modifiers
|
|||||||
transport := NewTransport(GetHTTPTransport(insecure), modifiers...)
|
transport := NewTransport(GetHTTPTransport(insecure), modifiers...)
|
||||||
return NewRepository(name, endpoint, &http.Client{
|
return NewRepository(name, endpoint, &http.Client{
|
||||||
Transport: transport,
|
Transport: transport,
|
||||||
Timeout: 30 * time.Second,
|
// for transferring large image, OS will handle i/o timeout
|
||||||
|
// Timeout: 30 * time.Second,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user