mirror of https://github.com/getdnsapi/getdns.git
Does smaller delay make a difference?
This commit is contained in:
parent
ac379787a2
commit
0af9a629f4
|
@ -98,7 +98,7 @@ void handler(getdns_context *context, getdns_callback_type_t callback_type,
|
|||
trans->ev.timeout_cb = delay_cb;
|
||||
|
||||
if (getdns_context_get_eventloop(context, &trans->loop)
|
||||
|| trans->loop->vmt->schedule(trans->loop, -1, 300, &trans->ev))
|
||||
|| trans->loop->vmt->schedule(trans->loop, -1, 200, &trans->ev))
|
||||
fprintf(stderr, "Could not schedule delay\n");
|
||||
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);
|
||||
free(fqdn);
|
||||
if (getdns_context_get_eventloop(context, &trans->loop)
|
||||
|| trans->loop->vmt->schedule(trans->loop, -1, 300, &trans->ev))
|
||||
|| trans->loop->vmt->schedule(trans->loop, -1, 200, &trans->ev))
|
||||
fprintf(stderr, "Could not schedule delay\n");
|
||||
else return;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ control_c()
|
|||
|
||||
|
||||
# for TEST_PKG in ${SRCDIR}/*.tpkg
|
||||
for TEST_PKG in ${SRCDIR}/400-static-analysis.tpkg
|
||||
for TEST_PKG in ${SRCDIR}/280-limit_outstanding_queries.tpkg ${SRCDIR}/285-out_of_filedescriptors.tpkg
|
||||
do
|
||||
"${TPKG}" $* exe "${TEST_PKG}"
|
||||
# trap keyboard interrupt (control-c)
|
||||
|
|
Loading…
Reference in New Issue