bool uploadDetectionRPC(const FrameData &frame_data, const std::string &
server, const std::string &secret) {
auto options = grpc::SslCredentialsOptions();
auto channel_creds = grpc::SslCredentials(options);
auto call_creds = grpc::MetadataCredentialsFromPlugin(
std::unique_ptr<grpc::MetadataCredentialsPlugin>(new Authenticator(
secret)));
auto composite_creds = grpc::CompositeChannelCredentials(channel_creds,
call_creds);
IngestionServiceClient ingestion_client(grpc::CreateChannel(server,
composite_creds));
bool res = ingestion_client.RecordDetection(frame_data);
return res;
}
Having some issues with this code sending data thgrough AWS ELB instance to
server. It works with Go can my client can send correctly to the sever but
when I try to implement in CPP I start getting this ALPN property issue.
E0724 14:16:01.337537569 22655 security_connector.c:529] Missing
selected ALPN property.
E0724 14:16:01.337593585 22655 handshake.c:128] Security
handshake failed: {"created":"@1500930961.337578768","description":"Error
checking
peer.","file":"external/com_github_grpc_grpc/src/core/lib/security/transport/handshake.c","file_line":152,"security_status":1}
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/f7550963-4bfc-43f8-9c94-8851f2a0585d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.