I'm using Recni.SSH in multi-threaded app using the new async features of CS 2012. I'm executing concurrent SSH commands on threadpool threads using Task.Run(...).
Overall, everything is going well (thanks for the great code!!!) , but:
1. Occasionally I get the "An established connection was aborted by the software in your host machine" exception. I don't really understand what this is exception is about or why it's making
it all the up to my application? What kinds of things should I look for in my code that might cause this??
2. Sometimes calls to APIs seem to never return. I've specifically noticed this with SftpClient.DownloadFile() and when executing a command created by SshClient.CreateCommand(). I think I can recreate at least one scenario in which this
happens: if I am executing one of the above commands and the the remote server is terminated. What I need for this issue is: any insight on what conditions the code might "never return" and/or to find out if there's any way to have the
code write debug messages so I can better understand what it's doing when it "goes away".
Any help with either of these would be much appreciated!