[GODRIVER-2623] Use a clone of the http.DefaultTransport for the internal HTTP client. Created: 27/Oct/22 Updated: 28/Oct/23 Resolved: 08/Nov/22 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.12.0, 1.12.0-alpha1 |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Matt Dale | Assignee: | Matt Dale |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
For the internal.DefaultHTTPClient, instead of creating a new http.Transport that may deviate from the Go http.DefaultTransport over time, use http.DefaultTransport.Clone(). Note that the Clone function is available starting in Go 1.13, so it depends on See this Go issue for more details about why Clone() was added and how to use it. |
| Comments |
| Comment by Githook User [ 08/Nov/22 ] |
|
Author: {'name': 'Eric Daniels', 'email': 'eric@erdaniels.com', 'username': 'edaniels'}Message: |