Skip to content

Commit 30fa81c

Browse files
weltekialexellis
authored andcommitted
Increase IdleConnTimeout from 120ms to 5s
Whilst not as important in the CLI due to its short-lived nature, this is being updated across components for consistency. Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
1 parent 24da2b8 commit 30fa81c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/general.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func GetDefaultCLITransport(tlsInsecure bool, timeout *time.Duration) *http.Tran
2929
Timeout: *timeout,
3030
}).DialContext
3131

32-
tr.IdleConnTimeout = 120 * time.Millisecond
32+
tr.IdleConnTimeout = 5 * time.Second
3333
tr.ExpectContinueTimeout = 1500 * time.Millisecond
3434
}
3535

0 commit comments

Comments
 (0)