Closed
Description
Microsoft Visual Studio Professional 2019 Version 16.6.5
.NET Framework 4.7.2
SSN.NET v2016.1.0
I'm using the latest SSH.NET with ShellStream and when calling the Expect(Regex, TimeSpan) the timeout doesn't seem to work at all. I've also tried using TimeSpan.FromSeconds(30) with the same results. If the expected information comes back, it works fine.
this.shellStream.WriteLine(command);
var expectRegex = new Regex(@"\[(.*?)\][$#]|[$]");
var output = this.shellStream.Expect(expectRegex, new TimeSpan(0, 0, 30));