# Reconfigure named while zone transfer attempt is in progress.
$RNDCCMD 10.53.0.6 reconfig 2>&1 | sed 's/^/ns6 /' | cat_i
# Confirm that the ongoing SOA request was canceled, caused by the reconfiguratoin.
-retry_quiet 60 wait_for_message "refresh: request result: shutting down" || tmp=1
+retry_quiet 60 wait_for_message "refresh: request result: operation canceled" || tmp=1
if test $tmp != 0; then echo_i "failed"; fi
status=$((status + tmp))
for (size_t i = 0; i < nloops; i++) {
ISC_LIST_INIT(requestmgr->requests[i]);
- /* unreferenced in requests_shutdown() */
+ /* unreferenced in requests_cancel() */
isc_loop_ref(isc_loop_get(requestmgr->loopmgr, i));
}
}
static void
-requests_shutdown(void *arg) {
+requests_cancel(void *arg) {
dns_requestmgr_t *requestmgr = arg;
uint32_t tid = isc_tid();
/* The callback has been already scheduled */
continue;
}
- req_sendevent(request, ISC_R_SHUTTINGDOWN);
+ req_sendevent(request, ISC_R_CANCELED);
}
isc_loop_unref(isc_loop_get(requestmgr->loopmgr, tid));
if (i == tid) {
/* Run the current loop synchronously */
- requests_shutdown(requestmgr);
+ requests_cancel(requestmgr);
continue;
}
isc_loop_t *loop = isc_loop_get(requestmgr->loopmgr, i);
- isc_async_run(loop, requests_shutdown, requestmgr);
+ isc_async_run(loop, requests_cancel, requestmgr);
}
}