Does smaller delay make a difference?

This commit is contained in:
Willem Toorop 2019-01-23 10:50:57 +01:00
parent ac379787a2
commit 0af9a629f4
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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)