related to https://github.com/chrislusf/seaweedfs/issues/1802
@ -45,7 +45,7 @@ func main() {
defer wg.Done()
client := &http.Client{Transport: &http.Transport{
MaxConnsPerHost: 1024,
MaxIdleConns: 1024,
MaxIdleConnsPerHost: 1024,
}}
r := rand.New(rand.NewSource(time.Now().UnixNano() + int64(x)))
@ -58,6 +58,7 @@ var (
func init() {
HttpClient = &http.Client{Transport: &http.Transport{
}
@ -29,6 +29,7 @@ var (
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 1024
http.DefaultTransport.(*http.Transport).MaxIdleConns = 1024
func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server {
@ -27,6 +27,7 @@ var (
client = &http.Client{Transport: &http.Transport{
@ -14,6 +14,7 @@ var (
@ -21,6 +21,7 @@ var (
Transport = &http.Transport{
client = &http.Client{