elixir-grpc / grpc

An Elixir implementation of gRPC
https://hex.pm/packages/grpc
Apache License 2.0
1.36k stars 210 forks source link

Cannot cancel Server streaming RPC from GRPC.Stub #331

Open AleksandarFilipov opened 11 months ago

AleksandarFilipov commented 11 months ago

Before I populate this as a proper bug,

The following is not working, and I suspect it's a bug, please enlighten me.

here is the failing test, which uses GRPC.Stub.cancel https://github.com/elixir-grpc/grpc/compare/master...remotivelabs:elixir-grpc:cancel-failing?expand=1

And the passing (unmodified) test with Client side streaming https://github.com/elixir-grpc/grpc/blob/d5ad40a88755e26a000d585291ddd0888aba7f5a/interop/lib/interop/client.ex#L253-L259

Initial finding

This is a GRCP.Stub client side issue (or possibly miss use from my side). Cancelling the same stream from a python client does work.