Hi Eric, thanks for the response but i have to problems
1) I am using grpc-java 1.0.1 which does not support this Interface (The 
product team has decided on grpc version)
2) The keepalive time is not fixed.

Also i have a doubt about the whether grpc java 1.0.1 can support http2. I 
found c based grpc 1.0.1 and grpc-java 1.0.1 has many different functions


On Tuesday, June 20, 2017 at 11:21:40 PM UTC+5:30, Eric Anderson wrote:
>
> You want to enable keep alive, via keepAliveTime on NettyChannelBuilder or 
> OkHttpChannelBuilder.
>
> On Sun, Jun 11, 2017 at 10:54 PM, <[email protected] <javascript:>> 
> wrote:
>
>>
>> I have a gRPC server to whom i have connected my gRPC client (Java).
>> - the client is observing server streaming RPC, which is supposed to go 
>> on for couple of hours.
>> - When the server stopped, the client gets the information as gRPC 
>> invoked onError() method.
>> - but when the network was broken between server and client, the client 
>> doesn't even know about the problem, the streamobserver is idle and no 
>> activity.
>>
>> In my scenario, if anything like this happens the client is supposed to 
>> retry the connection and invoke RPC again. 
>> So my question is how can i know about the network failure in the client.
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/9f221cd0-441d-4e16-aa2e-386efdd13c35%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/grpc-io/9f221cd0-441d-4e16-aa2e-386efdd13c35%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/738ed641-9342-41c0-92d2-da8106d31872%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to