You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are sporadically seeing the following exception when connecting > 1 pipeclient with pipeClient.ConnectAsync()
System.InvalidOperationException: Connection failed: Returned by server pipeName is null at H.Pipes.PipeClient1.GetConnectionPipeName(CancellationToken cancellationToken)
at H.Pipes.PipeClient1.GetConnectionPipeName(CancellationToken cancellationToken) at H.Pipes.PipeClient1.ConnectAsync(CancellationToken cancellationToken)`
Clients are connected in a relatively short time, the problem is already visible with 3 clients, but does not happen all the time.
Steps to reproduce the bug
Create pipe server
Create multiple pipe clients
Expected behavior
All pipe clients connect normally and without ab exception
Screenshots
No response
NuGet package version
Platform
Console
IDE
Other
Additional context
No response
The text was updated successfully, but these errors were encountered:
Thanks for the problem and detailed description. Yes, indeed, the main pipe of the server accepts requests one at a time, and there may be problems with simultaneous requests from several clients.
Comments for correction (to me in the future or anyone who wants to do this):
We need to create a test to test this by trying to connect as many clients at the same time as is guaranteed to throw an exception.
I'll get into this after checking out this PR - #19 because it changes the code a lot.
Describe the bug
We are sporadically seeing the following exception when connecting > 1 pipeclient with pipeClient.ConnectAsync()
System.InvalidOperationException: Connection failed: Returned by server pipeName is null at H.Pipes.PipeClient
1.GetConnectionPipeName(CancellationToken cancellationToken)at H.Pipes.PipeClient
1.GetConnectionPipeName(CancellationToken cancellationToken) at H.Pipes.PipeClient
1.ConnectAsync(CancellationToken cancellationToken)`Clients are connected in a relatively short time, the problem is already visible with 3 clients, but does not happen all the time.
Steps to reproduce the bug
Create pipe server
Create multiple pipe clients
Expected behavior
All pipe clients connect normally and without ab exception
Screenshots
No response
NuGet package version
Platform
Console
IDE
Other
Additional context
No response
The text was updated successfully, but these errors were encountered: