Skip to content

Commit

Permalink
- Slightly smaller critical region in one case in infra cache.
Browse files Browse the repository at this point in the history
git-svn-id: http://unbound.nlnetlabs.nl/svn/trunk@2611 be551aaa-1e26-0410-a405-d3ace91eadb9
  • Loading branch information
wouter committed Feb 10, 2012
1 parent 70c199f commit af3a845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/Changelog
@@ -1,3 +1,6 @@
10 February 2012: Wouter
- Slightly smaller critical region in one case in infra cache.

9 February 2012: Wouter
- Fix AHX_BROKEN_MEMCMP for autoheader mess up of #undef in config.h.

Expand Down
2 changes: 1 addition & 1 deletion services/cache/infra.c
Expand Up @@ -465,11 +465,11 @@ infra_get_lame_rtt(struct infra_cache* infra,
/* minus 1000 because that is outside of the RTTBAND, so
* blacklisted servers stay blacklisted if this is chosen */
if(host->rtt.rto >= USEFUL_SERVER_TOP_TIMEOUT) {
lock_rw_unlock(&e->lock);
*rtt = USEFUL_SERVER_TOP_TIMEOUT-1000;
*lame = 0;
*dnsseclame = 0;
*reclame = 0;
lock_rw_unlock(&e->lock);
return 1;
}
lock_rw_unlock(&e->lock);
Expand Down

0 comments on commit af3a845

Please sign in to comment.