From 063f88cd1498833f32313208b1e43b030b067e1f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 13 Mar 2001 07:59:19 +0000 Subject: close policies --- docs/curl_easy_setopt.3 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'docs/curl_easy_setopt.3') 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 -- cgit v1.2.3