Version: __2013.4.7.0__
Hey everybody,
I am sporadically getting the following exception while trying to disconnect SftpClient.
__System.ArgumentOutOfRangeException__: Specified argument was out of the range of valid values.
Parameter name: length
at Renci.SshNet.Session.WaitHandle(WaitHandle waitHandle)
at Renci.SshNet.Channels.Channel.Close(Boolean wait)
at Renci.SshNet.Channels.ChannelSession.Close(Boolean wait)
at Renci.SshNet.Channels.Channel.Close()
at Renci.SshNet.Sftp.SubsystemSession.Disconnect()
at Renci.SshNet.SftpClient.OnDisconnecting()
at Renci.SshNet.BaseClient.__Disconnect()__
Code Snippet:
```
if (sftpClient.IsConnected)
sftpClient.Disconnect();
```
Any idea why ?
Comments: ** Comment from web user: drieseng **
Hey everybody,
I am sporadically getting the following exception while trying to disconnect SftpClient.
__System.ArgumentOutOfRangeException__: Specified argument was out of the range of valid values.
Parameter name: length
at Renci.SshNet.Session.WaitHandle(WaitHandle waitHandle)
at Renci.SshNet.Channels.Channel.Close(Boolean wait)
at Renci.SshNet.Channels.ChannelSession.Close(Boolean wait)
at Renci.SshNet.Channels.Channel.Close()
at Renci.SshNet.Sftp.SubsystemSession.Disconnect()
at Renci.SshNet.SftpClient.OnDisconnecting()
at Renci.SshNet.BaseClient.__Disconnect()__
Code Snippet:
```
if (sftpClient.IsConnected)
sftpClient.Disconnect();
```
Any idea why ?
Comments: ** Comment from web user: drieseng **
Do you more information on this issue ?
I'll be closing this issue in a few days unless I hear back from you.
Thanks!