remove max connection age

following https://github.com/grpc/grpc-go/issues/3170#issuecomment-552517779
This commit is contained in:
chrislu 2022-01-27 02:28:22 -08:00
parent 62d815d1ca
commit b9b684194f

View file

@ -47,7 +47,6 @@ func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server {
grpc.KeepaliveParams(keepalive.ServerParameters{ grpc.KeepaliveParams(keepalive.ServerParameters{
Time: 10 * time.Second, // wait time before ping if no activity Time: 10 * time.Second, // wait time before ping if no activity
Timeout: 20 * time.Second, // ping timeout Timeout: 20 * time.Second, // ping timeout
MaxConnectionAge: 10 * time.Hour,
}), }),
grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{ grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{
MinTime: 60 * time.Second, // min time a client should wait before sending a ping MinTime: 60 * time.Second, // min time a client should wait before sending a ping