Skip to content
Snippets Groups Projects
Commit aa51d267 authored by Grigorii Demidov's avatar Grigorii Demidov
Browse files

lib/resolve: deferred answer processing was fixed

parent 3ab77332
No related branches found
No related tags found
No related merge requests found
......@@ -973,7 +973,10 @@ int kr_resolve_produce(struct kr_request *request, struct sockaddr **dst, int *t
set_yield(&request->answ_selected, qry->uid, false);
set_yield(&request->auth_selected, qry->uid, false);
RESUME_LAYERS(layer_id(request, pickle->api), request, qry, consume, pickle->pkt);
qry->deferred = pickle->next;
if (request->state != KR_STATE_YIELD) {
/* No new deferred answers, take the next */
qry->deferred = pickle->next;
}
} else {
/* Caller is interested in always tracking a zone cut, even if the answer is cached
* this is normally not required, and incurrs another cache lookups for cached answer. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment