Change the reading in the StreamDNS code to use isc_job_run() instead of
using isc_async_run() for less allocations and more streamlined
execution.
int backtrace_size;
#endif
LINK(isc_nmsocket_t) active_link;
+
+ isc_job_t job;
};
void
.active_handles = ISC_LIST_INITIALIZER,
.active_link = ISC_LINK_INITIALIZER,
.active = true,
+ .job = ISC_JOB_INITIALIZER,
};
if (iface != NULL) {
*/
isc__nmsocket_attach(sock, &(isc_nmsocket_t *){ NULL });
- isc_async_run(sock->worker->loop, streamdns_read_cb, sock);
+ isc_job_run(sock->worker->loop, &sock->job, streamdns_read_cb, sock);
}
void