Home Forums .NET libraries Xceed SFTP/FTP for .NET Timeout when attempting to connect

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21255 |

    When an FTP server is unavailable or offline,the FtpClient connect method always seems to timeout at approximately 20seconds, irregardless of what the Timeout property is set to.  Is it notpossible to shorten the timeout for connect?

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Randy (had 1132 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Randy,

    To get a timeout different from 20 seconds when an FTP server is unavailable and that the FtpClient instance is calling the connect method; you should set the TimeOut property to that value.

    For example, if you want a timeout to be generated after 1 second:

    ftpClient.Timeout = 1;//setting the TimeOut to 1

     

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Mohamed [Xceed] (had 1120 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.