diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
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 | } | ||