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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 1.12.0, 1.12.0-alpha1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: