<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: session disconnect problem</title><link href="https://sourceforge.net/p/sharpssh/support-requests/2/" rel="alternate"/><link href="https://sourceforge.net/p/sharpssh/support-requests/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/sharpssh/support-requests/2/</id><updated>2010-12-06T12:30:25Z</updated><subtitle>Recent changes to 2: session disconnect problem</subtitle><entry><title>session disconnect problem</title><link href="https://sourceforge.net/p/sharpssh/support-requests/2/" rel="alternate"/><published>2010-12-06T12:30:25Z</published><updated>2010-12-06T12:30:25Z</updated><author><name>CodeFire</name><uri>https://sourceforge.net/u/codefire/</uri></author><id>https://sourceforge.net18b5c45700dcd037a6bc8a31024b70a4252da2c8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am facing a strange behavior which i can't avoid... &lt;br /&gt;
I have it all the time into my own C# project, so i have tested the sample and it is there too. &lt;/p&gt;
&lt;p&gt;Here is how to reproduce the behavior:&lt;/p&gt;
&lt;p&gt;- run SSH File Transfer Sample &lt;br /&gt;
- either To or From direction &lt;br /&gt;
- using SCP protocol, transfer a file &lt;br /&gt;
- then press Enter key twice to close the session &lt;br /&gt;
--&amp;gt; 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:&lt;/p&gt;
&lt;p&gt;JStream.cs &lt;/p&gt;
&lt;p&gt;public override int Read(byte[] buffer, int offset, int count)&lt;br /&gt;
{ &lt;br /&gt;
return s.Read(buffer, offset, count); &lt;br /&gt;
} &lt;/p&gt;
&lt;p&gt;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. &lt;/p&gt;
&lt;p&gt;I don't see how to avoid that exception, thanks so much in advance to help me on this. &lt;/p&gt;
&lt;p&gt;Regards, &lt;br /&gt;
David &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>