gRPC去掉MaxConnectionAge设置

pull/164/head
ouqiang 2019-06-02 17:24:02 +08:00
parent ec4a4c0855
commit e335899fbb
1 changed files with 3 additions and 5 deletions

View File

@ -25,11 +25,9 @@ var keepAlivePolicy = keepalive.EnforcementPolicy{
}
var keepAliveParams = keepalive.ServerParameters{
MaxConnectionIdle: 1 * time.Minute,
MaxConnectionAge: 2 * time.Hour,
MaxConnectionAgeGrace: 3 * time.Hour,
Time: 30 * time.Second,
Timeout: 3 * time.Second,
MaxConnectionIdle: 30 * time.Second,
Time: 30 * time.Second,
Timeout: 3 * time.Second,
}
func (s Server) Run(ctx context.Context, req *pb.TaskRequest) (*pb.TaskResponse, error) {