From 0a9ebfbc3016fa09d59ff94877b64aebd01d5f5e Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Thu, 2 May 2024 14:09:37 -0700 Subject: [PATCH] Set PermitWithoutStream to true --- pkg/api/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/api/server.go b/pkg/api/server.go index c14351eb..ecad97a5 100644 --- a/pkg/api/server.go +++ b/pkg/api/server.go @@ -142,8 +142,12 @@ func (s *Server) startGRPC() error { grpc.Creds(insecure.NewCredentials()), grpc.UnaryInterceptor(middleware.ChainUnaryServer(unary...)), grpc.StreamInterceptor(middleware.ChainStreamServer(stream...)), + grpc.KeepaliveParams(keepalive.ServerParameters{ + Time: 5 * time.Minute, + }), grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{ - MinTime: 15 * time.Second, + PermitWithoutStream: true, + MinTime: 15 * time.Second, }), grpc.MaxRecvMsgSize(s.Config.Options.MaxMsgSize), }