On Mon, Jul 10, 2017 at 6:03 AM, <[email protected]> wrote:
> We are using grpc for C# <-> Java integration. The C# client application > will start the Java process containing the grpc server, and then create a > Chanel used for calling methods on Java server side. > > One problem we have is to properly terminate the Java server in case the > C# client crashed badly. In the current state, the Java process keeps > running in the background forever. > > Is there a way to be notified on server side when a client died? > I'd suggest the C# client creates a long-running RPC to the Java server, and the RPC will be seen as cancelled on the server when the connection is broken. I don't believe you need it in your case, but in similar cases you'd want to enable keepalive <https://grpc.io/grpc-java/javadoc/io/grpc/netty/NettyServerBuilder.html#keepAliveTime-long-java.util.concurrent.TimeUnit-> on the server-side. -- 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/CA%2B4M1oOPRin--XuMCuqpDG_boi6QuTZPa%3D4t3Rn5zOET5G0q2Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
