I have this code.

grpc::CreateChannel(host + ":" +port,
                                        grpc::InsecureChannelCredentials());
grpc::ClientContext client;
  client.set_fail_fast(true); 

  grpc::Status stat = stub_->AskService(&client, req, &res);


when user input invalid host, ex: some nonexistent hostname this would hang 
and not to make timeout.
Any body have pointers ?
thanks

-- 
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/fd0ceac3-d87d-4afe-934a-b654b3cd740e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to