I am assuming it is grpc-java you are talking about. Couple of questions:

- "when gRPC version is higher than 1.41.x" : can you pinpoint whether the 
client version or the server version causes this changed behavior?
- "...cannot detect disconnection of a client ..." do you mean that when a 
disconnection happens in the middle of a streaming RPC the server used to 
detect it as a cancellation and that doesn't happen anymore?

Same question about "...if the client disconnects from the server,..." : do 
you mean to say a TCP disconnection to be detected inside your while loop?



On Thursday, April 14, 2022 at 10:31:52 AM UTC-7 [email protected] wrote:

> Hi,
>
> I have recently discovered serverCallStreamObserver.isCancelled() cannot 
> detect disconnection of a client when gRPC version is higher than 1.41.x. 
> So, the server logic that I have contains a while loop that runs forever 
> and if the client disconnects from the server, it will call onCompleted() 
> before breaking from the loop. I am wondering what has changed in the new 
> versions and what is the new way to implement a similar behaviour?
>
> Regards,
> Bill
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/93b19194-1d0d-4010-93c6-fff877b11952n%40googlegroups.com.

Reply via email to