Hi Atsuhiko,

thanks for the quick response.
This issue does no happen on Unix Platforms. This happens
intermittently when I copy files(around 250 MB)  to Windows platforms
eg. Window 2K12
PS: On the Windows hosts , sshd is configured using Cygwin.

Im fine with using the same example  ScpTo (
http://www.jcraft.com/jsch/examples/ScpTo.java) ie with out.flush()
commented.
But will it cause any other Buffer issues while transferring huge
files say of size 300-500 MB.

thanks,
Prakash

On Sun, Apr 21, 2013 at 7:33 AM, Atsuhiko Yamanaka <y...@jcraft.com> wrote:
> 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