How to clean up after a failed AsyncDuplexStreamingCall?
问题 I have a AsyncDuplexStreamingCall that fails on the server side at the first write to the request stream. This will result in an RpcException at that point on the client side, as I'd expect. Today, however, I noticed an UnobservedTaskException and figured out that I also have to ensure that the response stream is not left in an error state: var call = _client.HelloWorld(); try { await call.RequestStream.WriteAsync(...); // fails with an RpcException, as expected ... } catch (RpcException) { /