ftpClient的连接超时设置
FTPClient ftpClient = new FTPClient();ftpClient.setConnectTimeout(10*1000); // 10s,如果超过就判定超时了ftpClient.connect(hostName, 21);http://commons.apache.org/proper/commons-net/apidocs/org/apache/c...