mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
better sent count handling
git-svn-id: file:///svn/unbound/trunk@2500 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
f82a0847eb
commit
d9ceec4005
1 changed files with 3 additions and 0 deletions
|
|
@ -975,6 +975,7 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq,
|
||||||
iq->dp = NULL;
|
iq->dp = NULL;
|
||||||
iq->refetch_glue = 0;
|
iq->refetch_glue = 0;
|
||||||
iq->query_restart_count++;
|
iq->query_restart_count++;
|
||||||
|
iq->sent_count = 0;
|
||||||
sock_list_insert(&qstate->reply_origin, NULL, 0, qstate->region);
|
sock_list_insert(&qstate->reply_origin, NULL, 0, qstate->region);
|
||||||
return next_state(iq, INIT_REQUEST_STATE);
|
return next_state(iq, INIT_REQUEST_STATE);
|
||||||
}
|
}
|
||||||
|
|
@ -1426,6 +1427,7 @@ processLastResort(struct module_qstate* qstate, struct iter_qstate* iq,
|
||||||
iq->deleg_msg = NULL;
|
iq->deleg_msg = NULL;
|
||||||
iq->refetch_glue = 1;
|
iq->refetch_glue = 1;
|
||||||
iq->query_restart_count++;
|
iq->query_restart_count++;
|
||||||
|
iq->sent_count = 0;
|
||||||
return next_state(iq, INIT_REQUEST_STATE);
|
return next_state(iq, INIT_REQUEST_STATE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1613,6 +1615,7 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
|
||||||
iter_dec_attempts(iq->dp, 3); /* space for fallback */
|
iter_dec_attempts(iq->dp, 3); /* space for fallback */
|
||||||
iq->num_current_queries++; /* RespState decrements it*/
|
iq->num_current_queries++; /* RespState decrements it*/
|
||||||
iq->referral_count++; /* make sure we don't loop */
|
iq->referral_count++; /* make sure we don't loop */
|
||||||
|
iq->sent_count = 0;
|
||||||
iq->state = QUERY_RESP_STATE;
|
iq->state = QUERY_RESP_STATE;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue