You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently discovered that serverCallStreamObserver.isCancelled() cannot detect client disconnection when gRPC version is higher than 1.41.0. We have several dependencies related to gRPC, namely grpc-netty-shaded, grpc-protobuf, grpc-stub and grpc-testing. I found that ONLY when grpc-netty-shaded is above 1.41.0, the disconnection cannot be detected. All other dependencies can be set to the latest release version, which is 1.45.1.
Here is a sample code snippet of what we have on the server side:
#8408 was in v1.41.0, and the observed behavior here does seem to match the current implementation. So I think something isn't right in the code. A workaround is to swap to Context.current().isCancelled().
I have recently discovered that serverCallStreamObserver.isCancelled() cannot detect client disconnection when gRPC version is higher than 1.41.0. We have several dependencies related to gRPC, namely grpc-netty-shaded, grpc-protobuf, grpc-stub and grpc-testing. I found that ONLY when grpc-netty-shaded is above 1.41.0, the disconnection cannot be detected. All other dependencies can be set to the latest release version, which is 1.45.1.
Here is a sample code snippet of what we have on the server side:
Our client is written in Python. Here is the sample code snippet:
The text was updated successfully, but these errors were encountered: