File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,11 @@ package internal // import "go.mongodb.org/mongo-driver/internal"
8
8
9
9
import (
10
10
"net/http"
11
- "time"
12
11
)
13
12
14
13
// DefaultHTTPClient is the default HTTP client used across the driver.
15
14
var DefaultHTTPClient = & http.Client {
16
- // TODO(GODRIVER-2623): Use "http.DefaultTransport.Clone" once we change the minimum supported Go version to 1.13.
17
- Transport : & http.Transport {
18
- Proxy : http .ProxyFromEnvironment ,
19
- MaxIdleConns : 100 ,
20
- IdleConnTimeout : 90 * time .Second ,
21
- TLSHandshakeTimeout : 10 * time .Second ,
22
- ExpectContinueTimeout : 1 * time .Second ,
23
- },
15
+ Transport : http .DefaultTransport .(* http.Transport ).Clone (),
24
16
}
25
17
26
18
// CloseIdleHTTPConnections closes any connections which were previously
You can’t perform that action at this time.
0 commit comments