kiranhegde264 / ganymed-ssh-2

Automatically exported from code.google.com/p/ganymed-ssh-2
Other
0 stars 0 forks source link

java.io.IOException: Illegal sftp packet len #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
java.io.IOException: Illegal sftp packet len: 34025
    at ch.ethz.ssh2.SFTPv3Client.receiveMessage(SFTPv3Client.java:245)
    at ch.ethz.ssh2.SFTPv3Client.scanDirectory(SFTPv3Client.java:724)
    at ch.ethz.ssh2.SFTPv3Client.ls(SFTPv3Client.java:927)
    at com.alphait.features.integration.hrm.HrmSFTPManager.listRemoteFiles(HrmSFTPManager.java:463)

Original issue reported on code.google.com by Khan.Far...@gmail.com on 25 Aug 2014 at 7:41

GoogleCodeExporter commented 8 years ago
I also experienced this error when connecting to a GlobalScape server.

Appears to be a mismatch in MAX_PACKET_SIZE = 64 * 1024 in 
main/java/ch/ethz/ssh2/transport/TransportManager.java

and hardcoded 34000 maxlen defined with all receiveMessage() calls.

my guess is either changing MAX_PACKET_SIZE = 32 * 1024 or recieveMessage(64 * 
1024) will fix the issue.

Original comment by jay.dani...@gmail.com on 17 Jun 2015 at 8:37

GoogleCodeExporter commented 8 years ago
See also: https://trac.cyberduck.io/ticket/5308

Original comment by jay.dani...@gmail.com on 17 Jun 2015 at 8:42