I think this is basically https://github.com/grpc/grpc/issues/9377
On Tuesday, February 25, 2020 at 12:24:30 PM UTC+1 [email protected] wrote: > > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/32cc54e6-004e-49c4-bf3e-43bbefa230f4%40googlegroups.com.
