cyanfish / grpc-dotnet-namedpipes

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

Server Stop and restart #24

Closed aniljosenj closed 3 years ago

aniljosenj commented 3 years ago

Once we kill or dispose the server and start again we are not able to send client request, is this expected?

cyanfish commented 3 years ago

Yes, that's intended. I'll change it so that starting throws an exception in that case. Create a new server object to restart.

aniljosenj commented 3 years ago

Creating new server seems to be not working for me , The procedure I followed is 1: Start server (start()) 2 Kill server(tried both kill and dispose) 3: start new server object(start()) 4 make client call And the client call was unsuccessful.

cyanfish commented 3 years ago

Thanks for reporting! Should be fixed in https://github.com/cyanfish/grpc-dotnet-namedpipes/commit/3a70abf7f4db93f5892f6fcdfb64c40259efbeb3 and version 1.4.2 on nuget.