Hi,
   +-From: "B. Scott Smith" <sc...@smithdomain.com> --
   |_Date: Thu, 29 Dec 2011 20:29:00 -0600 ___________
   |
   |I forwarded a port to a web server. Through that port I attempted
   |to download and run a Web Start Application via JNLP. It is a
   |large and complex Application (70MB and over 80 files). My Session
   |would spuriously shut down during the download of the Application,
   |yet no error was thrown. This occurred repeatedly.
   ...
   |I see that you made some patches in 0.1.43 to address this problem
   |(|bugfix: data may be written to the closed channel. FIXED.|), but
   |it was still happening to me. I made additional changes similar to
   |yours, and it resolved my problems. Here is the patch diff to
   |0.1.45:

It seems to me the following is enough.
Are other changes required?
And if you require a change for "SSH_MSG_CHANNEL_DATA" packet,
you may have lost data.

  >--- src/main/java/com/jcraft/jsch/Session.java    (revision 253)
  >+++ src/main/java/com/jcraft/jsch/Session.java    (working copy)
  >@@ -1212,7 +1212,8 @@
  >          //}
  >        }
  >      }
  >-    _write(packet);
  >+    if(!c.close)
  >+      _write(packet);
  >    }
  >
  >    public void write(Packet packet) throws Exception{


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to