Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Dec 8, 2015 · 2 comments
Open

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

GoogleCodeExporter opened this issue Dec 8, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 25 Aug 2014 at 7:41

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 17 Jun 2015 at 8:37

@GoogleCodeExporter
Copy link
Author

See also: https://trac.cyberduck.io/ticket/5308

Original comment by [email protected] on 17 Jun 2015 at 8:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant