Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Issue: ShellStream(string, timespan) hangs due to calling the incorrect overload [1400]

$
0
0
Hi guys,

My aplogies if this has already been picked up. I did a quick search but was unable to find any other issues related.

There is a slight issue with ShellStream.sh:323. The method takes a timespan parameter but is not passing it on and causing an unexpected hang.

I changed:

public string Expect(string text, TimeSpan timeout)
{
return this.Expect(new Regex(Regex.Escape(text)));
}

To

public string Expect(string text, TimeSpan timeout)
{
return this.Expect(new Regex(Regex.Escape(text)), timeout);
}

Everything is working as expected.

Kind regards,
Justin.
Comments: ** Comment from web user: olegkap **

Hi,
Thanks for providing a fix.
I just committed a changes.

Thanks,
Oleg


Viewing all articles
Browse latest Browse all 1026

Trending Articles



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