Skip to content

Commit

Permalink
fix: share http.Transport with service clients
Browse files Browse the repository at this point in the history
Closes #3039
  • Loading branch information
dougm committed Jun 27, 2023
1 parent cca9bbc commit 8ca8635
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vim25/soap/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ func (c *Client) NewServiceClient(path string, namespace string) *Client {

client := NewClient(u, c.k)
client.Namespace = "urn:" + namespace
client.DefaultTransport().TLSClientConfig = c.DefaultTransport().TLSClientConfig
if cert := c.Certificate(); cert != nil {
client.SetCertificate(*cert)
}

// Share the http transport
client.t = c.t
client.Client.Transport = c.Client.Transport

// Copy the trusted thumbprints
c.hostsMu.Lock()
Expand Down

0 comments on commit 8ca8635

Please sign in to comment.