Skip to content

Commit

Permalink
Set PermitWithoutStream to true (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas authored May 3, 2024
1 parent 9b84f9e commit ade549e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit ade549e

Please sign in to comment.