A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/robinrodricks/FluentFTP/wiki/Timeouts below:

Timeouts · robinrodricks/FluentFTP Wiki · GitHub

How to execute an FTP command with a different timeout?

Just set Config.ReadTimeout before executing your FTP command and then set it back to whatever you want.

client.Config.ReadTimeout = 100;     // 100 ms timeout
client.Execute(..);                  // execute whatever command here, you can also use high level API
client.Config.ReadTimeout = 10000;   // 10 seconds timeout

Reason: stream.ReadLine is only called in 3 places for Execute, and all of them honor Config.ReadTimeout.

For a client on windows, please also read the following:

Special considerations for windows timeout setting


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4