Setting connection timeout | 
    
       
       
      
     | 
  
| 
 You can use the Ftps#setTimeout method to define the maximum number of milli-seconds to wait when establishing a connection to an FTP server. Failure to establish a connection within the maximum time allowed will result in an FtpException being thrown. 
 Example 
 // set connection timeout to 5 seconds ftps.setTimeout(5000);  |