Hi,

   +-From: "B. Scott Smith" <sc...@smithdomain.com> --
   |_Date: Wed, 01 Jun 2011 13:41:38 -0500 ___________
   |
   |Based on your suggestion, I added the following code:
   |  // HACK! This is to cause the SSHD not to buffer data for better 
   |performance
   |  com.jcraft.jsch.ChannelExec hackChannel = ( 
   |com.jcraft.jsch.ChannelExec ) dataSession.getSession(  ).openChannel( 
   |"exec" );
   |  hackChannel.setPty( true );    // Assign a Pseudo TTY to our Session 
   |to improve latency for small packets from SSHD
   |  hackChannel.connect(  );
   |  hackChannel.disconnect(  );

   |After this code executes, any reverse forwards over this Session are 
   |high performance (no latency).
   |I am also worried about a timing issue by disconnecting the ChannelExec 
   |immediately after connecting in a high-volume scenario.
   |What do you think?

I have no suggestion about timing of disconnection,
but in a high-volume scenario, "hackChannel.connect()" may
fail(or throw an exception) due to timeout by network latency, 
out-of-resouces on the remote, etc., so such a case should be cared for.


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


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to