Hi all, I'm working on setting up a server-side stream GRPC. When the stream is started, the server should stream messages to the client until either the server or the client shuts down.
When the server shuts down, this is easy - it calls StreamObserver.onCompleted() and the client is then notified that the stream is ending. When clients shut down, they can do a graceful shutdown with ManagedChannel.shutdownNow() to stop the stream from their end. However, when the client shuts down ungracefully, the server never notices, and can continue to call StreamObserver.onNext() basically forever. My question is, is there a way to detect this situation from the server side when the client shuts down ungracefully? I would expect an exception to be thrown at some point, but that never happens. Can I manually check something to see whether the connection is broken? I've seen one other mention of a similar/same issue in this topic <https://groups.google.com/forum/#!msg/grpc-io/aFsIiGnQKTY/ipbaPKuvBgAJ>, which is from a long time ago but I don't see a resolution to it. Thanks, Chris -- 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/d8014d9b-2e3e-467a-9872-a7d53668a79d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.