aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-12-05 21:39:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-12-05 21:39:24 +0000
commiteb29c5c2851ffde4f72a3f3d75942796fee60c32 (patch)
treee10257dcb57fafc9b6e4dc11d0bd2e046d6ace61
parent1eb286e43e1eedb838313787ebfe187c93c17154 (diff)
removed the final traces of the closepolicy option
-rw-r--r--lib/url.c22
-rw-r--r--lib/urldata.h1
2 files changed, 2 insertions, 21 deletions
diff --git a/lib/url.c b/lib/url.c
index 4f9969dcf..a028857e8 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2143,26 +2143,8 @@ ConnectionKillOne(struct SessionHandle *data)
if(!conn || conn->inuse)
continue;
- /*
- * By using the set policy, we score each connection.
- */
- switch(data->set.closepolicy) {
- case CURLCLOSEPOLICY_LEAST_RECENTLY_USED:
- default:
- /*
- * Set higher score for the age passed since the connection
- * was used.
- */
- score = Curl_tvdiff(now, conn->now);
- break;
- case CURLCLOSEPOLICY_OLDEST:
- /*
- * Set higher score for the age passed since the connection
- * was created.
- */
- score = Curl_tvdiff(now, conn->created);
- break;
- }
+ /* Set higher score for the age passed since the connection was used */
+ score = Curl_tvdiff(now, conn->now);
if(score > highscore) {
highscore = score;
diff --git a/lib/urldata.h b/lib/urldata.h
index f175eeae4..f16cf10bc 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1204,7 +1204,6 @@ struct UserDefined {
struct curl_slist *telnet_options; /* linked list of telnet options */
curl_TimeCond timecondition; /* kind of time/date comparison */
time_t timevalue; /* what time to compare with */
- curl_closepolicy closepolicy; /* connection cache close concept */
Curl_HttpReq httpreq; /* what kind of HTTP request (if any) is this */
char *customrequest; /* HTTP/FTP request to use */
long httpversion; /* when non-zero, a specific HTTP version requested to