Hi,

I am using GRPC v1.19 C++ version

I have a client-server mechanism where client streams data to server. So, 
using client-writer at client end. But if the server is down, the 
clientwriter creation is taking too much time (around 20 secs) to know that 
listener is not available.

"""
// created channel unique pointer 
// created stub unique pointer from channel
// Created context obj
deadline = now() + 2 // seconds
context.set_deadline(deadline);
ClientWriter writer = stub->send_data(&context, reply_message)
"""

How can I set deadline/timeout for Streaming RPC where the writer can 
unblock itself after N secs (where N is configurable).

Thanks,
Sid

-- 
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/4411186a-d319-45e7-98ce-347e8281d138%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to