Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2623

Use a clone of the http.DefaultTransport for the internal HTTP client.

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.12.0, 1.12.0-alpha1
    • Affects Version/s: None
    • Component/s: None
    • None

      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 GODRIVER-2174 and should only be added after the Go Driver 1.11 release (1.11 documents the min Go version change, but should not include any actual build-breaking changes).

      See this Go issue for more details about why Clone() was added and how to use it.

            Assignee:
            matt.dale@mongodb.com Matt Dale
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: