]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
removed the final traces of the closepolicy option
authorDaniel Stenberg <daniel@haxx.se>
Tue, 5 Dec 2006 21:39:24 +0000 (21:39 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Dec 2006 21:39:24 +0000 (21:39 +0000)
lib/url.c
lib/urldata.h

index 4f9969dcfb3834ce28b68983314a6013cb18efa3..a028857e8bd332ae609471572568b0726d85d8f0 100644 (file)
--- 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;
index f175eeae41ed5f422de5de9b82d2ad0d5da35a58..f16cf10bc40e44b7836fc1a271caeab98165e899 100644 (file)
@@ -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