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 14:51:47 +0100
commite959f16c5fc17031e13e87732ef3848e1a7a2c2f (patch)
tree28a67664a78c979be17e7155c3f5cc316a1a594a /lib/multi.c
parent06a0a26fb6b4b45f20fdc484059d27b57df9b646 (diff)
downloadcurl-e959f16c5fc17031e13e87732ef3848e1a7a2c2f.tar.gz
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
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 */