adjust http max idle connections per host

related to https://github.com/chrislusf/seaweedfs/issues/1802
This commit is contained in:
Chris Lu
2021-02-12 03:47:15 -08:00
parent 0f426ce34d
commit 487e435679
6 changed files with 6 additions and 1 deletions

View File

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