SSH.NET Peek() hangs (wodSSH / wodSSH.NET)
Hi Tony.
I double-checked the source. HELPfile is wrong. Peek will block, just like Receive, but not clear out the buffer.
So, this is normal behavior. I would rather not go into asking to change wodSSH.NET, since someone else may use Peek the way it is now. Rather, I would suggest you change your algorithm a bit.
For example, you could set Blocking = False, Peek, Blocking = True? That would not block, but would tell you if there's something on the socket. Or you could use DataReady.
Would that solve your problem?
Jasmine.
Complete thread:
- SSH.NET Peek() hangs - Tony, 2017-02-22, 21:23
- SSH.NET Peek() hangs - Jasmine, 2017-02-22, 21:52
- SSH.NET Peek() hangs - Tony, 2017-02-23, 02:05
- SSH.NET Peek() hangs - Jasmine, 2017-02-23, 22:04
- SSH.NET Peek() hangs - Tony, 2017-02-24, 01:22
- SSH.NET Peek() hangs - Jasmine, 2017-02-23, 22:04
- SSH.NET Peek() hangs - Tony, 2017-02-23, 02:05
- SSH.NET Peek() hangs - Jasmine, 2017-02-22, 21:52