]> git.kaiwu.me - njs.git/commit
Fetch: fix missing event cleanup when resolver start fails
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 12 Jun 2026 00:06:32 +0000 (17:06 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 12 Jun 2026 03:26:59 +0000 (20:26 -0700)
commit0365e3ad0d822c8d49d58a324b46cb15aa99195c
treeb7e21ff198085d5ff9ac49e13443f0916724be96
parenta0bc03dcf682417ffb8bd8fbafc311705a743427
Fetch: fix missing event cleanup when resolver start fails

Previously, when the resolver context allocation failed, both engines
returned without deleting the registered fetch event and reported the
error with a synchronous throw instead of rejecting the returned
promise, unlike all other failure paths.
nginx/ngx_js_fetch.c
nginx/ngx_qjs_fetch.c