Hi,

   +-From: Prakash Babu <jprakashbab...@gmail.com> --
   |_Date: Sat, 20 Apr 2013 20:35:12 +0530 __________
   |
   |      while(true){
   |        int len=fis.read(buf, 0, buf.length);
   |        if(len<=0) break;
   |        out.write(buf, 0, len); //out.flush();
   |      }
   |      fis.close();

   |I am facing intermittent hang while copying when I uncomment it
   |out.flush in the while loop.
   |So just want to know the reason why its commented ?

It has indented to send data in the large packet as possible as.
So many small packets will eat CPU cycles for cyphering and calculating HMAC.

As a preliminary test, I have been sending 10MB file 100 times with flush(),
but have not been able to reproduce that problem.
Would you show have to reproduce it?


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

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to