Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot cancel Server streaming RPC from GRPC.Stub #331

Open
AleksandarFilipov opened this issue Aug 8, 2023 · 0 comments
Open

Cannot cancel Server streaming RPC from GRPC.Stub #331

AleksandarFilipov opened this issue Aug 8, 2023 · 0 comments
Labels

Comments

@AleksandarFilipov
Copy link

AleksandarFilipov commented Aug 8, 2023

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

def cancel_after_begin!(ch) do
Logger.info("Run cancel_after_begin!")
stream = Grpc.Testing.TestService.Stub.streaming_input_call(ch)
stream = GRPC.Stub.cancel(stream)
error = GRPC.RPCError.exception(1, "The operation was cancelled")
{:error, ^error} = GRPC.Stub.recv(stream)
end

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.

@AleksandarFilipov AleksandarFilipov changed the title Cannot cancel an unary stream Cannot cancel Server streaming RPC from GRPC.Stub Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant