Hi,

the new 0.1.48 feature with multiple requests for ChannelSftp#get(String
src) seems to have introduced a problem:

When doing SFTP get for files with size ~1Mb I can see that the files are
(sometimes) corrupted.
For a file ~1MB I often get multiple rows in the std-err log like:

"The request is not in order."

 which seems to come from ChannelSftp:

      if(rrq[i].id!=id){
        System.err.println("The request is not in order.");
      }


My code looks like (after sanitation):
---
InputStream is = channelSftp.get(fileName);
// max packet size 32768 bytes according to SFTP v3 spec
BufferedInputStream bis = new BufferedInputStream(is, 32768);
org.apache.commons.io.IOUtils.copy(bis, new FileOutputStream(destination));
---

The SFTP-server in this case is CompleteFTP v3.2.1/Windows 2003R2.

The problem does not appear when running client with Jsch-0.1.44 or from
SFTP-cmdline (OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010).

Any ideas?


/Håkan
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to