- print query name when max target count is exceeded.

git-svn-id: file:///svn/unbound/trunk@3296 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2015-01-05 13:12:42 +00:00
parent bcec3cc4f1
commit 42cf616fae
2 changed files with 9 additions and 4 deletions

View File

@ -3,6 +3,7 @@
- make strip works for unbound-host and unbound-anchor. - make strip works for unbound-host and unbound-anchor.
- patch from Stephane Lapie that adds to the python API, that - patch from Stephane Lapie that adds to the python API, that
exposes struct delegpt, and adds the find_delegation function. exposes struct delegpt, and adds the find_delegation function.
- print query name when max target count is exceeded.
9 December 2014: Wouter 9 December 2014: Wouter
- svn trunk has 1.5.2 in development. - svn trunk has 1.5.2 in development.

View File

@ -1383,8 +1383,10 @@ query_for_targets(struct module_qstate* qstate, struct iter_qstate* iq,
return 0; return 0;
if(iq->depth > 0 && iq->target_count && if(iq->depth > 0 && iq->target_count &&
iq->target_count[1] > MAX_TARGET_COUNT) { iq->target_count[1] > MAX_TARGET_COUNT) {
verbose(VERB_QUERY, "request has exceeded the maximum " char s[LDNS_MAX_DOMAINLEN+1];
"number of glue fetches %d", iq->target_count[1]); dname_str(qstate->qinfo.qname, s);
verbose(VERB_QUERY, "request %s has exceeded the maximum "
"number of glue fetches %d", s, iq->target_count[1]);
return 0; return 0;
} }
@ -1581,8 +1583,10 @@ processLastResort(struct module_qstate* qstate, struct iter_qstate* iq,
} }
if(iq->depth > 0 && iq->target_count && if(iq->depth > 0 && iq->target_count &&
iq->target_count[1] > MAX_TARGET_COUNT) { iq->target_count[1] > MAX_TARGET_COUNT) {
verbose(VERB_QUERY, "request has exceeded the maximum " char s[LDNS_MAX_DOMAINLEN+1];
"number of glue fetches %d", iq->target_count[1]); dname_str(qstate->qinfo.qname, s);
verbose(VERB_QUERY, "request %s has exceeded the maximum "
"number of glue fetches %d", s, iq->target_count[1]);
return error_response_cache(qstate, id, LDNS_RCODE_SERVFAIL); return error_response_cache(qstate, id, LDNS_RCODE_SERVFAIL);
} }
/* mark cycle targets for parent-side lookups */ /* mark cycle targets for parent-side lookups */