diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-13 07:59:19 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-13 07:59:19 +0000 |
commit | 063f88cd1498833f32313208b1e43b030b067e1f (patch) | |
tree | c74f9504a282bb6660c04355543b4feb3f9fb25b | |
parent | 87b0b7cab9924848aa7be2fc154379b39356132b (diff) |
close policies
-rw-r--r-- | CHANGES | 9 | ||||
-rw-r--r-- | docs/curl_easy_setopt.3 | 12 |
2 files changed, 18 insertions, 3 deletions
@@ -7,6 +7,15 @@ History of Changes +Daniel (13 March 2001) +- Added the policy stuff to the curl_easy_setopt man page for the two supported + policies. + +- Implemented some support for the CURLOPT_CLOSEPOLICY option. The policies + CURLCLOSEPOLICY_LEAST_RECENTLY_USED and CURLCLOSEPOLICY_OLDEST are now + supported, and the "least recently used" is used as default if no policy + is chosen. + Daniel (12 March 2001) - Added CURLOPT_RANDOM_FILE and CURLOPT_EGDSOCKET to libcurl for seeding the SSL random engine. The random seeding support was also brought to the curl diff --git a/docs/curl_easy_setopt.3 b/docs/curl_easy_setopt.3 index df4fd449d..f900807fb 100644 --- a/docs/curl_easy_setopt.3 +++ b/docs/curl_easy_setopt.3 @@ -2,7 +2,7 @@ .\" nroff -man [file] .\" Written by daniel@haxx.se .\" -.TH curl_easy_setopt 3 "12 March 2001" "libcurl 7.7" "libcurl Manual" +.TH curl_easy_setopt 3 "13 March 2001" "libcurl 7.7" "libcurl Manual" .SH NAME curl_easy_setopt - Set curl easy-session options .SH SYNOPSIS @@ -437,8 +437,14 @@ with this curl handle, setting a smaller MAXCONNECTS than before may cause open connections to unnecessarily get closed. (Added in 7.7) .TP .B CURLOPT_CLOSEPOLICY -Pass a long. This must be one of the CURLCLOSEPOLICY_* defines. This is still -not supported as of this writing. (Added in 7.7) +Pass a long. This option sets what policy libcurl should use when the +connection cache is filled and one of the open connections has to be closed to +make room for a new connection. This must be one of the CURLCLOSEPOLICY_* +defines. Use CURLCLOSEPOLICY_LEAST_RECENTLY_USED to make libcurl close the +connection that was least recently used, that connection is also least likely +to be capable of re-use. Use CURLCLOSEPOLICY_OLDEST to make libcurl close the +oldest connection, the one that was created first among the ones in the +connection cache. The other close policies are not support yet. (Added in 7.7) .TP .B CURLOPT_FRESH_CONNECT Pass a long. Set to non-zero to make the next transfer use a new connection by |