Convert isc__nm_http_send() from isc_async_run() to isc_job_run()

The isc__nm_http_send() was already using uvreq; convert this to use
more direct isc_job_run() - the on-loop no-allocation method.
This commit is contained in:
Ondřej Surý
2023-04-11 12:04:38 +02:00
parent 3adba8ce23
commit 1302345c93

View File

@@ -2183,7 +2183,7 @@ isc__nm_http_send(isc_nmhandle_t *handle, const isc_region_t *region,
uvreq->uvbuf.base = (char *)region->base;
uvreq->uvbuf.len = region->length;
isc_async_run(sock->worker->loop, http_send_cb, uvreq);
isc_job_run(sock->worker->loop, &uvreq->job, http_send_cb, uvreq);
}
static void