Hi,
while implementing the server side of a server-streaming call (*rpc 
TimeChanged(TimeChangedRequest) returns (stream TimeChangedResponse)*),
I noticed that *IAsyncStreamWriter<T>.WriteAsync(T message)* sometimes 
throws an *InvalidOperationException* with the message *"Already finished"*. 
This seems to happen after the client canceled the stream.
This exception is even thrown while the Task that handles the stream 
request on the server is still active.

Is it somehow possible to avoid this exception. Like there is *int.Parse* 
with Exceptions and *int.TryParse* without it?

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/75f6443f-d868-43c9-9efb-633e15179082%40googlegroups.com.

Reply via email to