]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Convert isc__nm_http_send() from isc_async_run() to isc_job_run()
authorOndřej Surý <ondrej@isc.org>
Tue, 11 Apr 2023 10:04:38 +0000 (12:04 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 12 Apr 2023 12:10:37 +0000 (14:10 +0200)
The isc__nm_http_send() was already using uvreq; convert this to use
more direct isc_job_run() - the on-loop no-allocation method.

lib/isc/netmgr/http.c

index 10e07c8b7a97db217982b812c5147629ed94a180..7ba075fe907055d8e3c22e052a6b8f9823e9ddad 100644 (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