$ the-wire · showcase
Heap profiling gets a live sample interval, HTTP/1 stops dropping socket drain
By RepoJournal · Filed · About Node.js · Composed from the cited sources · methodology
Node's heap profiler can now change sampling resolution mid-session without discarding samples, and two long-standing async edges in HTTP/1 and undici's HTTP/2 handler got closed.
v8: add heap profiling setSampleInterval nodejs/node
The heap profiler's sampling interval was fixed for the life of a session, so changing resolution meant stopping and restarting profiling and losing profile continuity. The new setSampleInterval(sampleInterval) updates it in place and getSamples() returns retained allocation samples without stopping profiling or building the full profile.
http: keep forwarding socket 'drain' after response completes nodejs/node
When a server responded before reading the whole request body, the client stopped forwarding socket 'drain' to the request as soon as the response completed, so a backpressure-honoring writer never got 'drain', never called end(), and the socket kept the process alive. The listener now stays until the request ends and is removed in responseKeepAlive().
fix(h2): preserve request AsyncLocalStorage context for body chunks nodejs/undici
Under multiplexed HTTP/2, node fired a stream's transport data callback in the session's context, so a response body listener could read another concurrent request's AsyncLocalStorage store while still receiving its own bytes. Chunks are now pushed inside the request's AsyncResource via runInAsyncScope.
v8.14.0 nodejs/undici
by github-actions[bot]
v8.14.0 ships the deduplication fix that stops requests with a body from being merged, a preserveHeaders option for decompression, preserved falsy abort reasons in fetch, and bracketed IPv6 literal handling for socks5 proxy and target hosts.
http2: add signal to compat request nodejs/node
Http2ServerRequest now carries request.signal, matching message.signal in HTTP/1, and it tracks the stream rather than the socket: it aborts when the stream closes before the response has been sent completely. Separately, doc-kit's jsx-ast and html stages now start on their dependency's first chunk, overlapping page building and rendering across threads.