SSH.NET Peek() hangs - WeOnlyDo Discussion board

SSH.NET Peek() hangs (wodSSH / wodSSH.NET)

by Tony, Thursday, February 23, 2017, 02:05 (2618 days ago) @ Jasmine

I'm not sure how to tell you how to reproduce this as the app that uses the SSH client is very complex and connects to any of hundreds of remote servers. This does not happen in v2.5.3 of the client nor does it happen when I run this in the debugger - which would seem to suggest some sort of timing issue. Possibly only happens when connection is idle and there is no data to receive, i.e. DataReady = 0. Seems to work fine when there is indeed data ready to receive. This feels like some sort of boundary condition, like a null ref exception or infinite loop caused by the absence of data to receive. Does that make sense? Perhaps you can check your code or try to reproduce based on that. Remember, I also set Blocking = true and Timeout = 0. Perhaps that helps to create the scenario?


Complete thread: