diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-12-09 23:50:05 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-12-10 10:20:02 +0100 |
commit | 302fe563dc97681694e0087034f2b6bfce2cdfda (patch) | |
tree | d906f9e6a93d6ee8f63f27ad3c85261a2ea242ba /lib/multi.c | |
parent | b1b94305d896e4204159871318d6d08109b44764 (diff) | |
download | curl-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.c | 1 |
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 */ |