We are doing FTP connection through our applicaion which is a JAVA aplication.
We have set timeout for connection using Socket.connect(Adreess,timeout)
method before calling FTPClient.connect()
method.
During retriving files from the FTP site under same connection we havent set any timeout. Is it mandatory to call method FTPClient.setSoTimeOut(timeout)
method to set individual time out for each such interaction under same connection or Socket.connect(Adreess,timeout)
method will set timeout for each interaction with FTP site under one connection?
I would also like to know What is the difference between these two methods?