summaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-12-09 23:50:05 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-12-10 10:20:02 +0100
commit302fe563dc97681694e0087034f2b6bfce2cdfda (patch)
treed906f9e6a93d6ee8f63f27ad3c85261a2ea242ba /lib/multi.c
parentb1b94305d896e4204159871318d6d08109b44764 (diff)
downloadcurl-bagder/multi_done-prune-dns-cache.tar.gz
multi_done: prune DNS cachebagder/multi_done-prune-dns-cache
Prune the DNS cache immediately after the dns entry is unlocked in multi_done. Timed out entries will then get discarded in a more orderly fashion. Test506 is updated Reported-by: Oleg Pudeyev Fixes #2169
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 1a4618eb2..e35b8fa19 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -552,6 +552,7 @@ static CURLcode multi_done(struct connectdata **connp,
Curl_resolv_unlock(data, conn->dns_entry); /* done with this */
conn->dns_entry = NULL;
}
+ Curl_hostcache_prune(data);
/* if the transfer was completed in a paused state there can be buffered
data left to free */