Is SshClient threadsafe? #1473
Answered
by
Rob-Hague
ScuroGuardiano
asked this question in
Q&A
Replies: 2 comments
|
It depends what you intend to do. For example, running multiple commands simultaneously should be OK, but adding/removing forwarded ports has no thread safety |
0 replies
Answer selected by
ScuroGuardiano
|
When the ssh clients are being simultaneously instantiated and connected, for a list of hosts of which some are online, others are offline, even those that target the online hosts wait for 20 seconds to connect. This is from Task.Run(). If I remove the offline hosts from the list, then there is no delay. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It depends what you intend to do. For example, running multiple commands simultaneously should be OK, but adding/removing forwarded ports has no thread safety