[grpc-io] C# Cleanly cancelling streaming call

2016-10-17 Thread neilglover
How are people cancelling streaming calls from the client without exception on client or server? See my GitHub issue for details https://github.com/grpc/grpc/issues/8277 I can see how you might do this with bidirectional streaming and start message followed by a stop or something similar but it

Re: [grpc-io] C# Cleanly cancelling streaming call

2016-10-18 Thread neilglover
I'm using the term cancel but equally I could say complete. The point is the client needs a way to tell the server it's done and doesn't care about any future responses. Both client and server then need to clean up any resources and not log any exceptions. -- You received this message because

Re: [grpc-io] C# Cleanly cancelling streaming call

2016-10-18 Thread neilglover
Sort of but not entirely. The client is definitely interested in getting messages back, hence the use of the streaming api. However it will be part of the normal lifecycle for the client to want to close down, complete, cancel whatever we want to call it. When this happens the server needs to kn