Corrected comments

closepolicy has been deprecated and unused for years
This commit is contained in:
Daniel Stenberg
2011-05-05 00:02:39 +02:00
parent dc15a88076
commit 61877b569f
2 changed files with 8 additions and 8 deletions

View File

@@ -991,8 +991,7 @@ typedef enum {
/* Max amount of cached alive connections */ /* Max amount of cached alive connections */
CINIT(MAXCONNECTS, LONG, 71), CINIT(MAXCONNECTS, LONG, 71),
/* What policy to use when closing connections when the cache is filled /* 72 - DEPRECATED */
up */
CINIT(CLOSEPOLICY, LONG, 72), CINIT(CLOSEPOLICY, LONG, 72),
/* 73 = OBSOLETE */ /* 73 = OBSOLETE */

View File

@@ -3025,9 +3025,10 @@ ConnectionExists(struct SessionHandle *data,
/* /*
* This function frees/closes a connection in the connection cache. This * This function kills and removes an existing connection in the connection
* should take the previously set policy into account when deciding which * cache. The connection that has been unused for the longest time.
* of the connections to kill. *
* Returns -1 if it can't find any unused connection to kill.
*/ */
static long static long
ConnectionKillOne(struct SessionHandle *data) ConnectionKillOne(struct SessionHandle *data)
@@ -3078,9 +3079,9 @@ ConnectionDone(struct connectdata *conn)
} }
/* /*
* The given input connection struct pointer is to be stored. If the "cache" * The given input connection struct pointer is to be stored in the connection
* is already full, we must clean out the most suitable using the previously * cache. If the cache is already full, least interesting existing connection
* set policy. * (if any) gets closed.
* *
* The given connection should be unique. That must've been checked prior to * The given connection should be unique. That must've been checked prior to
* this call. * this call.