mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- 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:
parent
82ebbe32d1
commit
6e46110ae8
2 changed files with 5 additions and 0 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue