.netvb.netftpfluentftp

How to set timeouts for FluentFTP


I am using Fluent FTP. The documentation says that you set the connection timeout with .ConnectTimeout, but the C# compiler says this is not a member of FTPClient.

How do I set the timeout?


Solution

  • FTPClient.ConnectTimeout was used in older versions.

    Currently, there's FtpConfig.ConnectTimeout. And the FtpConfig goes to the FtpClient constructor.