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 fcadd3a commit 31175cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ func (cl *Client) init(cfg *ClientConfig) {
cl.httpClient.Transport = &http.Transport{
Proxy: cfg.HTTPProxy,
DialContext: cfg.HTTPDialContext,
// Don't set maxconns - attempt to avoid panic: net/http: internal error: connCount underflow
// Don't set maxconns - to avoid panic: net/http: internal error: connCount underflow
// which is caused under load due to an ongoing issue in the go http transport code
MaxConnsPerHost: 0,
}
}
Expand Down

0 comments on commit 31175cf

Please sign in to comment.