aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c22
1 files changed, 2 insertions, 20 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;