mirror of
https://github.com/ouqiang/gocron.git
synced 2024-04-21 12:31:58 +00:00
gRPC去掉MaxConnectionAge设置
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user