increase max idle conn per hosts

This commit is contained in:
Chris Lu 2019-04-15 22:00:50 -07:00
parent f567777d64
commit 967e108b9a

View file

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