You can call onCompleted on the stub to end the stream. Is there something more you wanted to do?
On Thursday, February 1, 2018 at 11:21:51 PM UTC-8, Arun Jain wrote: > > Hi, > > I am testing client side application. I am trying to close the stream and > not the whole connection. No, client and server are two different process > communicating over network. > > On Fri, Feb 2, 2018 at 6:59 AM, 'Kun Zhang' via grpc.io < > [email protected] <javascript:>> wrote: > >> Is it client-side application or server-side service implementation you >> are testing? >> Are you trying to simulate stream closure or connection closure? >> Are you using the in-process transport? >> >> On Thursday, February 1, 2018 at 12:49:24 AM UTC-8, [email protected] >> wrote: >>> >>> Hi, >>> >>> We want to force the grpc client to disconnect from a streaming response >>> API in a test case. I could not figure out how to do that. >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "grpc.io" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/grpc-io/bbxe2-YmkUI/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/grpc-io. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/grpc-io/9cbb4005-6500-44e9-9558-a89252deface%40googlegroups.com >> >> <https://groups.google.com/d/msgid/grpc-io/9cbb4005-6500-44e9-9558-a89252deface%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/798ba2ec-44cb-4606-bfcb-82303936e36a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
