Browse Source

increase max idle conn per hosts

pull/934/head
Chris Lu 6 years ago
parent
commit
967e108b9a
  1. 2
      weed/util/grpc_client_server.go

2
weed/util/grpc_client_server.go

@ -20,7 +20,7 @@ var (
) )
func init() { func init() {
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 100
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 1024
} }
func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server { func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server {

Loading…
Cancel
Save