- flush_infra cleans timeouted servers from the cache too.

git-svn-id: file:///svn/unbound/trunk@2639 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2012-03-02 09:05:36 +00:00
parent 82ebbe32d1
commit 6e46110ae8
2 changed files with 5 additions and 0 deletions

View file

@ -1126,6 +1126,8 @@ infra_del_host(struct lruhash_entry* e, void* arg)
struct infra_key* k = (struct infra_key*)e->key;
if(sockaddr_cmp(&inf->addr, inf->addrlen, &k->addr, k->addrlen) == 0) {
struct infra_data* d = (struct infra_data*)e->data;
d->probedelay = 0;
rtt_init(&d->rtt);
if(d->ttl >= inf->now) {
d->ttl = inf->expired;
inf->num_keys++;

View file

@ -1,3 +1,6 @@
2 March 2012: Wouter
- flush_infra cleans timeouted servers from the cache too.
1 March 2012: Wouter
- forward-first option. Tries without forward if a query fails.
Also stub-first option that is similar.