Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Timeout for client.RunCommand()?

$
0
0
So Im using:
using (var client = new SshClient(connectionInfo))
{
    client.Connect();                    
    var cmd = client.RunCommand(command);
    unixResults = cmd.Result;
    client.Disconnect();
}
Does var cmd = client.RunCommand(command); have a timeout? If the command causes unix to hang or whatnot, will it ever timeout? Or will the code be stuck forever waiting?

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>