Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: ShellStream.ReadLine causes _socket.Receive to return zero, resulting in SshConnectionException

$
0
0
I'm calling ShellStream.Readline in my code after sending a command, but if I then loop and call ReadLine, I find that the _socket.Receive call in Session.NET.cs returns zero bytes read and hence throws the shConnectionException exception.

I'm trying to figure out why this is happening but so far no luck. It seems this should not happen because ReadLine only reads from the _incoming buffer, which in turn only gets filled when a ChannelDataMessage is received. This is at a higher level than the socket itself so it is unclear to me why the socket's data gets stolen by the ReadLine call.

Any ideas?

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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