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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Unknown Unknown
    • 1.12.0, 1.12.0-alpha1
    • None
    • None
    • None

    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 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: