Menu

#17 Session disconnect problem

open
nobody
None
5
2010-12-06
2010-12-06
CodeFire
No

I am facing a strange behavior which i can't avoid...
I have it all the time into my own C# project, so i have tested the sample and it is there too.

Here is how to reproduce the behavior:
- run SSH File Transfer Sample
- either To or From direction
- using SCP protocol, transfer a file
- then press Enter key twice to close the session
--> If your Environment Debug options are set to break for Common Language Runtime Exceptions, then you can see following exception while the session is trying to disconnect:

JStream.cs

public override int Read(byte[] buffer, int offset, int count)
{
return s.Read(buffer, offset, count);
}

Unable to read data from the transport connection: An established connection was aborted by the software in your host machine. at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at Tamir.SharpSsh.java.io.JStream.Read(Byte[] buffer, Int32 offset, Int32 count) in C:\SharpSSH\java\io\JStream.cs:line 19 Sometimes it appears onto the Write method. I don't see how to avoid that exception,

thanks so much in advance to help me on this.

Discussion


Log in to post a comment.