Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in Java FTP by
I am using the constructor that does not have the timeout as one of its args. Can anybody tell me what the default value is ? This should probably be part of docs.

2 Answers

0 votes
by
Default is 0 which is no timeout

I am using the constructor that does not have the timeout as one of its args. Can anybody tell me what the default value is ? This should probably be part of docs.
0 votes
by
Default is 0 which is no timeout

I am using the constructor that does not have the timeout as one of its args. Can anybody tell me what the default value is ? This should probably be part of docs.


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?

Categories

...