Hi,

I am trying to copy a file from one windows host to another using jsch.

Source Windows Host (JSCH-0.1.44) ----------> Target Windows Host
(cygwin [1.7.11] - OpenSSH [5.9p1])

I am using the sample application @
http://www.jcraft.com/jsch/examples/ScpTo.java to do this copy.
I see an intermittent issue where the in.read function is blocked
infinitely in the checkAck method (stack track

Line 97        if(checkAck(in)!=0){
Line 114      int b=in.read();         (Blocked forever)

Also I see the complete file is still not copied to the target host.
Source       File   236 MB (248,023,133 bytes)
Destination File   236 MB (247,988,224 bytes)

What could be causing this intermittent issue where the last few bytes
of the file is still not copied and the in.read call is blocked
forever.
I see this intermittent issue only when copying files to a Windows host
Are there any workarounds to resolve this issue ?

thanks,
Prakash

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to