mirror of https://github.com/getdnsapi/getdns.git
Restore original serve delays
This commit is contained in:
parent
c4bd91b196
commit
35f2ce37c0
|
@ -98,7 +98,7 @@ void handler(getdns_context *context, getdns_callback_type_t callback_type,
|
||||||
trans->ev.timeout_cb = delay_cb;
|
trans->ev.timeout_cb = delay_cb;
|
||||||
|
|
||||||
if (getdns_context_get_eventloop(context, &trans->loop)
|
if (getdns_context_get_eventloop(context, &trans->loop)
|
||||||
|| trans->loop->vmt->schedule(trans->loop, -1, 200, &trans->ev))
|
|| trans->loop->vmt->schedule(trans->loop, -1, 300, &trans->ev))
|
||||||
fprintf(stderr, "Could not schedule delay\n");
|
fprintf(stderr, "Could not schedule delay\n");
|
||||||
else return;
|
else return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,7 @@ void handler(getdns_context *context, getdns_callback_type_t callback_type,
|
||||||
fprintf(stderr, "sched delay for query %s, n_request %d\n", fqdn, (int)n_requests);
|
fprintf(stderr, "sched delay for query %s, n_request %d\n", fqdn, (int)n_requests);
|
||||||
free(fqdn);
|
free(fqdn);
|
||||||
if (getdns_context_get_eventloop(context, &trans->loop)
|
if (getdns_context_get_eventloop(context, &trans->loop)
|
||||||
|| trans->loop->vmt->schedule(trans->loop, -1, 200, &trans->ev))
|
|| trans->loop->vmt->schedule(trans->loop, -1, 300, &trans->ev))
|
||||||
fprintf(stderr, "Could not schedule delay\n");
|
fprintf(stderr, "Could not schedule delay\n");
|
||||||
else return;
|
else return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue