Closed pdupont1 closed 11 months ago
I'd be interested to see a test case if you have one that can reproduce it. The client is supposed to wait for the timeout before failing. I do feel like I've seen that fail in the past but I haven't had any luck reproducing it lately.
I've added some custom retry logic in 3.0.0 that I believe should solve issues like this.
Having an issue in my automated tests when calling NamedPipeServer.Start and directly afterwards calling an RPC method on my client. Sometimes the client fails to connect with an RpcException
Status(StatusCode="Unavailable", Detail="failed to connect to all addresses")
. I think the cause for this is that ServerStreamPool is starting background threads to create servers and the servers might not be created and listening for connections when I would expect them to (After Start() exits).I fixed it for now by adding a counter to the ServerStreamPool.WaitForConnection method:
and changing the ServerStreamPool.Start() method to this:
The workaround seems to have fixed the issue for my use case.