Z. Luo
Results
issues of
Z. Luo
我们创建了多个ProviderApi来将实例注册到多个不同的名字服务上。但在运行中,会随机出现core在心跳时解析host上。 看到TryLookup 中使用了非线程安全的inet_ntoa。为什么不适用线程安全的inet_ntop了? `std::string target_address = inet_ntoa(*(struct in_addr*)host->h_addr_list[0]);` (gdb) bt #0 0x0000000001e08b8c in polaris::grpc::TryLookup (address=...) at polaris/network/grpc/http2.cpp:425 #1 polaris::grpc::Http2Client::ConnectTo(std::string const&, int) () at polaris/network/grpc/http2.cpp:455 #2 0x0000000001dbbe54 in polaris::grpc::GrpcClient::ConnectTo (port=, host=...,...