Thanks for this great resource.
I'm having issues with connections dropping when I instantiate more than a few (4 or more) SshClients in the same application. If I run separate instances of the same application (each with 1 SshClient), my problems go away. Can you think of any possible causes (maybe static methods with locks that block use from multiple instances of the class)?
Comments: ** Comment from web user: olegkap **
I'm having issues with connections dropping when I instantiate more than a few (4 or more) SshClients in the same application. If I run separate instances of the same application (each with 1 SshClient), my problems go away. Can you think of any possible causes (maybe static methods with locks that block use from multiple instances of the class)?
Comments: ** Comment from web user: olegkap **
Hi,
Well, I do have a lock which will enforce only 3 connection at a time to allow authenticate but once it is authenticated it should allow more connections to be established.
Does this behavior the same when you try to connect to different host?
Sometimes server will enforce different policies and will drop connection if policy is violated.
Can you try with different server and let me know what happens?
Thanks,
Oleg