Menu

#1 Session disconnect problem

open
nobody
None
5
2014-08-23
2010-12-08
CodeFire
No

Hi,

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 FSM.DotNetSSH.java.io.JStream.Read(Byte[] buffer, Int32 offset, Int32 count) in C:\\DotNetSSH\DotNetSSH\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.

Regards,
David

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.