$ the-wire · showcase
undici 8.13 connection reuse fix, process.exit() worker hang
By RepoJournal · Filed · About Node.js · Composed from the cited sources · methodology
undici patches a regression from 8.13 that could reuse a TLS connection verified for one server name on a request to another, while Node fixes a process.exit() hang and tightens permission revocation.
fix: do not send a request on a connection verified for another servername nodejs/undici
A request aborted while waiting for a connection leaves the queue, and when it was the last one for the server name being connected, `_resume()` switched to the next request's servername while the connection was still pending, so a connection whose certificate was verified for the previous name got used. The maintainers call this a regression in 8.13; the fix stops sending a request on a connec...
src: fix hang when joining workers in process.exit() nodejs/node
`process.exit()` could hang forever when a V8 background job, such as a concurrent Sparkplug or Maglev compile, parked waiting for the main thread to collect garbage: the exit handler joins the platform workers without disposing the isolate. The main thread now performs that GC while it waits for the workers to exit.
permission: drop fs grants regardless of the path's current type nodejs/node
Revoking an fs permission grant re-checked whether the path was a directory, so a path whose type changed after startup no longer matched the stored grant and the drop silently did nothing. Grants are now matched in both the plain and wildcard form regardless of the path's current type.
fix(fetch): preserve empty strings when inspecting `FormData` nodejs/undici
`FormData` inspection now preserves empty strings instead of dropping them, aligning with Chromium and Firefox when the same field appears multiple times and the first appearances are empty strings.
fix(h2): preserve request AsyncLocalStorage context for onInfo nodejs/undici
Because HTTP/2 multiplexes streams over one shared session, the 1xx `onInfo` path invoked the callback without re-entering the owning request's `AsyncResource`; it now goes through `runInAsyncScope` like the final-response and error paths, keeping `AsyncLocalStorage` context intact for concurrent requests.
Action items