Skip to content

Commit

Permalink
Remove max connection age
Browse files Browse the repository at this point in the history
  • Loading branch information
angelini committed Aug 6, 2024
1 parent 21ce11f commit bd265bf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ func NewServer(ctx context.Context, dbConn *DbPoolConnector, cert *tls.Certifica
grpc.MaxRecvMsgSize(MAX_MESSAGE_SIZE),
grpc.MaxSendMsgSize(MAX_MESSAGE_SIZE),
grpc.Creds(creds),
grpc.KeepaliveParams(keepalive.ServerParameters{
MaxConnectionAge: 120 * time.Second,
MaxConnectionAgeGrace: 45 * time.Second,
}),
grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{
MinTime: 2 * time.Second,
PermitWithoutStream: true,
Expand Down

0 comments on commit bd265bf

Please sign in to comment.