Timeout for client.RunCommand()?

Apr 17, 2013 at 11:49 PM
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?
Apr 23, 2013 at 3:38 PM
Any thoughts?