Hello,
I've a process that download files from an FTP Server over SSL.
Started on Windows XP Home everything works perfectly. On Windows 2000 Server, the process always blocks at the end a the dowload. It does'nt block always at the end of the same file or after the same time.
Both works on j2sdk 1.4.0
I've tried to close the connection and reconnect after each file but it does'nt help.
Here my init code :
private void initFtp()
{
mFtp = new SSLFTPClient();
mFtp.setConfigFlags(
SSLFTPClient.ConfigFlags.DISABLE_CONTROL_WAIT_ON_CLOSE +
SSLFTPClient.ConfigFlags.DISABLE_SSL_CLOSURE +
SSLFTPClient.ConfigFlags.START_WITH_CLEAR_DATA_CHANNELS);
mFtp.setRemoteHost("ftp.xxx.xx");
mFtp.setRemotePort(990);
mFtp.setValidateServer(false);
mFtp.connect();
mFtp.auth(SSLFTPClient.AUTH_TLS);
mFtp.login(username, pwd);
mFtp.setConnectMode(com.enterprisedt.net.ftp.FTPConnectMode.PASV);
mFtp.setType(FTPTransferType.ASCII);
}
and the code download:
initFtp();
mFtp.get(localFileName, fileName);
mFtp.quit();
Thx in advance for your help
Cedric