diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-09-28 15:50:18 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-09-28 15:50:18 +0200 |
commit | e8ab9a0d27a87bf0db730459a848644b74d7aa84 (patch) | |
tree | 7ed0c51bba7d0ad1d1530f23f8496758de5544c8 /docs/FAQ | |
parent | 628c4e7af1a28ea2d8463a29d59a58d30eb1f710 (diff) |
FAQ: 5.16 I want a different time-out!
Diffstat (limited to 'docs/FAQ')
-rw-r--r-- | docs/FAQ | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -97,6 +97,7 @@ FAQ 5.13 How do I stop an ongoing transfer? 5.14 Using C++ non-static functions for callbacks? 5.15 How do I get an FTP directory listing? + 5.16 I want a different time-out! 6. License Issues 6.1 I have a GPL program, can I use the libcurl library? @@ -1294,6 +1295,22 @@ FAQ libcurl since 7.21.0 also provide the ability to specify a wildcard to download multiple files from one FTP directory. + 5.16 I want a different time-out! + + Time and time again users realize that CURLOPT_TIMEOUT and + CURLOPT_CONNECTIMEOUT are not sufficiently advanced or flexible to cover all + the various use cases and scenarios applications end up with. + + libcurl offers many more ways to time-out operations. A common alternative + is to use the CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME options to + specify the lowest possible speed to accept before to consider the transfer + timed out. + + The most flexible way is by writing your own time-out logic and using + CURLOPT_PROGRESSFUNCTION (perhaps in combination with other callbacks) and + use that to figure out exactly when the right condition is met when the + transfer should get stopped. + 6. License Issues |