Skip to content

Commit ff4ba3d

Browse files
committed
Increased the timeout for go-pivnet client and downoader.
[#177105083](https://www.pivotaltracker.com/story/show/177105083)
1 parent d6c0ae6 commit ff4ba3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pivnet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func NewClient(
122122
baseURL := fmt.Sprintf("%s%s", config.Host, apiVersion)
123123

124124
httpClient := &http.Client{
125-
Timeout: 60 * time.Second,
125+
Timeout: 10 * time.Minute,
126126
Transport: &http.Transport{
127127
TLSClientConfig: &tls.Config{
128128
InsecureSkipVerify: config.SkipSSLValidation,
@@ -146,7 +146,7 @@ func NewClient(
146146
HTTPClient: downloadClient,
147147
Ranger: ranger,
148148
Logger: logger,
149-
Timeout: 5 * time.Second,
149+
Timeout: 30 * time.Second,
150150
}
151151

152152
client := Client{

0 commit comments

Comments
 (0)