cyanfish / grpc-dotnet-namedpipes

Named pipe transport for gRPC in C#/.NET
Apache License 2.0
190 stars 48 forks source link

System.InvalidOperationException: The pipe is in a disconnected state! #62

Open NeverMorewd opened 3 months ago

NeverMorewd commented 3 months ago

There was a communication error during more than 20,000 Unary requests being executed.

the server's error is as follows: caught by NamedPipeServer.Error event. System.InvalidOperationException: The pipe is in a disconnected state!

and the client error is: Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="failed to connect to all addresses") 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 GrpcDotNetNamedPipes.Internal.MessageReader`1.d__5.MoveNext()

After this error, everything was going well.

NeverMorewd commented 3 months ago

I have not encoutered this issue in 2.1. After updating to 3.0, it occured once time. I will go with more test.

NeverMorewd commented 2 months ago

I suspect that it is related to this commit https://github.com/cyanfish/grpc-dotnet-namedpipes/commit/1767e2bf096242a2624029a4d0592652d0b44c62