Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.3k views
in Java FTP by (120 points)
Hi

I bought edtFTPj/PRO to use in my Android app and it significantly increased my SFTP transfer speeds compared to the previous library I was using. FTP speeds are also fine.

However when I use the multi protocol client or the SSLFtpClient and use FTPS mode (excplict or implicit) speeds are but a fraction of FTP speeds. This goes both for directory listings and file transfers.
Using the ftp4j opensource library I can get almost the same speed as vanilla FTP, when using FTPS. I have tested on multiple servers, FileZilla being the primary one.

Am I doing something wrong? I am pretty much following the standard examples, and I have tried both with compression on and off.

Example:

SSLFTPClient client = new SSLFTPClient();
client.setRemoteHost("ftp.someadress.com");
client.setDetectTransferMode(true);
client.setTimeout(30000);
client.setConnectMode(FTPConnectMode.PASV);

Locale[] locales = new Locale[3];
locales[0] = Locale.getDefault();
locales[1] = Locale.GERMAN;
locales[2] = Locale.FRENCH;
client.setParserLocales(locales);

client.setValidateServer(false);
client.setControlEncoding("UTF-8");

client.connect();
client.auth(SSLFTPClient.AUTH_TLS);
client.login("anonymous", "guest@android.com"); // or whatever credentials is supplied
client.enableModeZCompression(); // tried both with and without this

1 Answer

0 votes
by (51.6k points)
It could be related to the cipher being used. Try using one of the AES ciphers.

- Hans (EnterpriseDT)

Categories

...