mirror of https://gitlab.com/gitlab-org/cli.git
fix: Adjusting timeout value to prevent hangs
This commit is contained in:
parent
93b82a4999
commit
2d71244efc
|
@ -159,12 +159,12 @@ func NewClient(host, token string, allowInsecure bool, isGraphQL bool, isOAuth2
|
|||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 30 * time.Second,
|
||||
KeepAlive: 30 * time.Second,
|
||||
Timeout: 5 * time.Second,
|
||||
KeepAlive: 5 * time.Second,
|
||||
}).DialContext,
|
||||
ForceAttemptHTTP2: true,
|
||||
MaxIdleConns: 100,
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
IdleConnTimeout: 30 * time.Second,
|
||||
TLSHandshakeTimeout: 10 * time.Second,
|
||||
ExpectContinueTimeout: 1 * time.Second,
|
||||
TLSClientConfig: tlsConfig(host),
|
||||
|
|
Loading…
Reference in New Issue