Did not found a better subject title, sorry ^^
I was wondering why we do not have sftp server errors?
I try to explain. I use the library in one application that provide Sftp connections to users.
There is a case where the user cannot connect to the Sftp server because it doesn't have the right to access a directory, for example:
It should be logged into /usr/username, but for unknown reason it doesn't have access to /usr, so it cannot log into /usr/username.
If I use Filezilla I receive this message:
Connection closed by server with exitcode 128
With the library, it get stuck in
var index = EventWaitHandle.WaitAny(waitHandles, operationTimeout);
internal void WaitHandle(WaitHandle waitHandle, TimeSpan operationTimeout)
The only way I found to get errors is to set the OperationTimeout to 2 seconds.
Which throw me a SshOperationTimeoutException(). The problem is that I'm not really fond of this, because this is no timeout, and I could timeout on other operation just because I may have set a value to low.
I've tried to understand how it works and how to "unstuck" from WaitHandle, but I can't find anything.