Ironically, I have a grpc-java project that uses a long-lived, two-way stream, but I had to add manual, ping-based health checks to detect disconnections.
I am anticipating/assuming eventually grpc will handle this, but for me neither the server or client side would notice when the connection went down.
(This definitely happened when the stream was passive/not-being-used, but I'm ~50% sure it also happened when messages were actively being sent, and neither the client nor server would immediately recognize the connection was actually down.)
- Stephen