You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fetch: after a server sends Connection: close, each new connection serves one request (regression in 7.15.0, fixed in 8.11.0, still in 7.30.0 / Node 24) #5910
With fetch from undici 7.15.0 through 7.30.0, once a server closes a keep-alive connection with Connection: close, subsequent connections are used for a single request each. undici.request is not affected, and neither is fetch in 7.14.0 or 8.11.0.
Node.js v24 bundles an affected version (v24.18.0 ships undici 7.28.0), so global fetch on Node 24 LTS is affected.
Real-world impact: a test suite talking to a local Supabase stack (Kong/nginx closes each keep-alive socket after keepalive_requests = 100) opened 16,331 TCP connections for 17,920 requests and failed on macOS with EADDRNOTAVAIL / UND_ERR_SOCKET once ephemeral ports ran out. The same suite on Node 22 (undici 6.x) reuses sockets normally.
Reproducible By
server.mjs: closes each socket after 100 requests and reports how many requests each socket served:
Activity
fix(functions): pin undici to >=8.11.0 to fix a connection-pool leak (#…