I am using Apache Commons-Net library in Java
What I want is to set the connection time-out of the FTP-server on the client stage
using java-code
example :
If I look at the FTP server's vsftpd.conf settings file,
there is a idle_session_timeout=600
setting
I wonder if this idle time-out can be controlled by FTP-client using java code
The method below, which I tried but not all worked
FTPClient.setControlKeepAliveTimeout(sec);
FTPClient.setConnectTimeout(ms);
FTPClient.setDataTimeout(ms);
FTPClient.connect();
FTPClient.setSoTimeout(ms);
Please help me :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…