<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 2: session disconnect problem</title><link>https://sourceforge.net/p/sharpssh/support-requests/2/</link><description>Recent changes to 2: session disconnect problem</description><atom:link href="https://sourceforge.net/p/sharpssh/support-requests/2/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 06 Dec 2010 12:30:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sharpssh/support-requests/2/feed.rss" rel="self" type="application/rss+xml"/><item><title>session disconnect problem</title><link>https://sourceforge.net/p/sharpssh/support-requests/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CodeFire</dc:creator><pubDate>Mon, 06 Dec 2010 12:30:25 -0000</pubDate><guid>https://sourceforge.net18b5c45700dcd037a6bc8a31024b70a4252da2c8</guid></item></channel></rss>