$ the-wire · showcase
urlToHttpOptions locks out spoofed URL objects, undici fixes aborted-request leaks
By RepoJournal · Filed · About Node.js · Composed from the cited sources · methodology
Node closed a request-redirection hole in urlToHttpOptions and undici's v8.13.0 plus a stack of abort-path fixes tightened connection handling, while the HTTP/3 and BigInt accessor work landed quietly underneath.
url: restrict option copying in urlToHttpOptions to URL instances nodejs/node
urlToHttpOptions() used to spread every own enumerable property of its argument into the request options, so a URL-shaped object that passed the duck-typed isURL() check could smuggle socketPath, method, headers, or agent into http.request() and redirect a hostname-validated request to a Unix domain socket. Option copying is now restricted to genuine WHATWG URL instances. This is a breaking cha...
fix: reject requests aborted while waiting for a connection nodejs/undici
A request aborted while queued in a Pool or pending on a connecting or busy Client only failed once it reached a socket; it now leaves the queue immediately, drops stats.queued, and fails with the signal's reason. The follow-up lands the same treatment across stream(), pipeline() and the rest of the API surface, where #6117 had only covered request().
fix: destroy a connection attempt that no request waits for nodejs/undici
When every request waiting on a connecting Client was aborted, the connection attempt kept running and held a Pool connection slot until it connected or hit connectTimeout, 10 s by default and forever with connectTimeout: 0. The attempt is now destroyed when nothing waits for it, and the existing transport errors and their causes are preserved rather than discarded.
quic: fix h3 session close on early stream destroy nodejs/node
Destroying an HTTP/3 stream right after sendHeaders() left nghttp3 with the response headers still queued, so the next write asked for the removed stream's body, the read callback failed, and the entire session closed without notifying the peer. The fix shuts down nghttp3's writes for that stream before clearing its pointer, letting other requests on the session complete.
buffer: use typed arrays for 64-bit BigInt accessors nodejs/node
readBig(U)Int64{LE,BE}() and writeBig(U)Int64{LE,BE}() used to assemble and split values with BigInt arithmetic, allocating intermediate BigInts on every call; they now copy bytes through BigInt64Array and BigUint64Array views over the existing 8-byte scratch buffer. Bounds checks are unchanged and the value is masked with `& -1n` before the store, so non-BigInt inputs throw the same TypeError.