I'm using the FTPj library in my code, and it usually works well. I have not set a timeout value, but sometimes I see this error message:
com.enterprisedt.net.ftp.FTPException: Timeout (900 seconds): closing control co nnection.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSoc
ket.java:689)
at com.enterprisedt.net.ftp.FTPClient.modtime(FTPClient.java:2109)
Is there a default timeout in FTPj?
Another question I have is that is it possible to query the size of the remote file?