From e959f16c5fc17031e13e87732ef3848e1a7a2c2f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 9 Dec 2017 23:50:05 +0100 Subject: 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 Closes #2170 --- lib/multi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/multi.c') 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 */ -- cgit v1.2.3