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
When I invoke the Disconnect method, a SocketException is thrown.
The problem is that I have to call this code in multiple iterations and I need to re-create the connection every time. The exception is a perf hit.
Repro code:
The repro code is very simple. I tried both Connect and ConnectAsync with no differences.
As soon as I try to either Disconnect or Dispose (which calls Disconnect), the Exception is thrown.
_client = new SshClient(connectionInfo);
_client.Connect(); // //await _client.ConnectAsync(default);
_client.Disconnect(); // Exception explodes here
_client.Dispose();
System.Net.Sockets.SocketException: 'A blocking operation was interrupted by a call to WSACancelBlockingCall.'
The text was updated successfully, but these errors were encountered:
System Information:
<PackageReference Include="SSH.NET" Version="2024.2.0" />
Problem:
When I invoke the
Disconnect
method, aSocketException
is thrown.The problem is that I have to call this code in multiple iterations and I need to re-create the connection every time. The exception is a perf hit.
Repro code:
The repro code is very simple. I tried both
Connect
andConnectAsync
with no differences.As soon as I try to either
Disconnect
orDispose
(which callsDisconnect
), the Exception is thrown.System.Net.Sockets.SocketException: 'A blocking operation was interrupted by a call to WSACancelBlockingCall.'
The text was updated successfully, but these errors were encountered: