You want to enable keep alive, via keepAliveTime on NettyChannelBuilder or OkHttpChannelBuilder.
On Sun, Jun 11, 2017 at 10:54 PM, <deepakagarwal2...@gmail.com> 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 grpc-io+unsubscr...@googlegroups.com. > To post to this group, send email to grpc-io@googlegroups.com. > 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 grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. 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/CA%2B4M1oP4VPO7fTSODzhO7Yxi4FSQqV5X2X%3DcHqjcZuHpOoRtrw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature