diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-12-05 21:39:24 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-12-05 21:39:24 +0000 |
commit | eb29c5c2851ffde4f72a3f3d75942796fee60c32 (patch) | |
tree | e10257dcb57fafc9b6e4dc11d0bd2e046d6ace61 /lib/url.c | |
parent | 1eb286e43e1eedb838313787ebfe187c93c17154 (diff) | |
download | curl-eb29c5c2851ffde4f72a3f3d75942796fee60c32.tar.gz |
removed the final traces of the closepolicy option
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 22 |
1 files changed, 2 insertions, 20 deletions
@@ -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; |