Browse Source

remove max connection age

related to https://github.com/chrislusf/seaweedfs/pull/3226
pull/3256/head
chrislu 3 years ago
parent
commit
449ecc8890
  1. 2
      weed/pb/grpc_client_server.go

2
weed/pb/grpc_client_server.go

@ -48,7 +48,7 @@ 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,
// 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

Loading…
Cancel
Save