diff options
Diffstat (limited to 'vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport.go')
-rw-r--r-- | vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport.go b/vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport.go new file mode 100644 index 0000000..ea9ebb6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport.go | |||
@@ -0,0 +1,26 @@ | |||
1 | // +build go1.7 | ||
2 | |||
3 | package session | ||
4 | |||
5 | import ( | ||
6 | "net" | ||
7 | "net/http" | ||
8 | "time" | ||
9 | ) | ||
10 | |||
11 | // Transport that should be used when a custom CA bundle is specified with the | ||
12 | // SDK. | ||
13 | func getCABundleTransport() *http.Transport { | ||
14 | return &http.Transport{ | ||
15 | Proxy: http.ProxyFromEnvironment, | ||
16 | DialContext: (&net.Dialer{ | ||
17 | Timeout: 30 * time.Second, | ||
18 | KeepAlive: 30 * time.Second, | ||
19 | DualStack: true, | ||
20 | }).DialContext, | ||
21 | MaxIdleConns: 100, | ||
22 | IdleConnTimeout: 90 * time.Second, | ||
23 | TLSHandshakeTimeout: 10 * time.Second, | ||
24 | ExpectContinueTimeout: 1 * time.Second, | ||
25 | } | ||
26 | } | ||