首页 > 解决方案 > 为什么 gRPC 会出现 InsecureServerCredentials() 卡住

问题描述

我想将基于 gRPC 的 C++ 应用程序从 x64 Linux (Ubuntu/Debian/..) 移植到基于 ARM 的设备。Yocto 环境、SDK 和构建工具已经运行良好。现在我可以为嵌入式设备运行我的应用程序并且她不工作。

每次调用 Function grpc::InsecureServerCredentials() 时的应用程序都会卡在此调用中。

我的应用程序使用 gRPC 服务器和客户端。对于基于 x64 的发行版,她已经运行了 4 年多。源代码是相同的。

这是环境:

grpc::ServerBuilder builder;
builder.AddListeningPort(serverAdress, grpc::InsecureServerCredentials());
builder.RegisterService(this);
m_Service = builder.BuildAndStart();

有人可以帮我解决这个问题吗?

谢谢你的回复。

标签: armgrpcyoctoimx6grpc-c++

解决方案


推荐阅读