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 22, 2024
1 parent e5388dd commit 6eb9a83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,10 @@ func (cl *Client) init(cfg *ClientConfig) {
// to other uses of HTTP from the client.
// This has been updated as under heavy load the golang http lib seems to panic, MaxIdleConnsPerHost
// is set to stop the http runtime recycling sockets
MaxConnsPerHost: 500,
MaxIdleConnsPerHost: 500,

// attempt to avoid panic: net/http: internal error: connCount underflow
//MaxConnsPerHost: 500,
MaxIdleConnsPerHost: 50,
}
}
}
Expand Down

0 comments on commit 6eb9a83

Please sign in to comment.