Skip to content

Commit

Permalink
remove max conns
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 23, 2024
1 parent 5278e37 commit fcadd3a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ func (cl *Client) init(cfg *ClientConfig) {
Proxy: cfg.HTTPProxy,
DialContext: cfg.HTTPDialContext,
// Don't set maxconns - attempt to avoid panic: net/http: internal error: connCount underflow
MaxConnsPerHost: 0,
MaxIdleConnsPerHost: 100,
MaxConnsPerHost: 0,
}
}
}
Expand Down

0 comments on commit fcadd3a

Please sign in to comment.