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
Commit 44e56bd
Browse filesBrowse the repository at this point in the historyBrowse files
test: release HTTP keep-alive span retainers, raise baseline to 10
The dominant span retainer on HTTP-server suites is Node's per-connection
keep-alive/headers `Timeout`: under AsyncContextFrame its callback closes over
the `{ ...store, span }` frame active when the request ran and stays in the
active-timer list, reachable from the still-open `Server`, until it fires. That
pinned a fixed handful of finished spans at teardown on every express, fastify,
koa, connect, and AppSec/IAST suite, so each raised its own baseline for benign
non-scaling residue.
Release it at the source: at agent teardown, before forcing GC, call
`closeIdleConnections()` on every live server (Node >=18.2; drops only sockets
with no in-flight request). The default baseline moves 3 -> 10 to absorb the
recency-bounded residue that survives. 10 is an absolute cap, not a per-request
allowance, so a #9227-style leak still retains one span per request and blows
past it by orders of magnitude — the margin costs no detection power.
Refs: #9227
0 commit comments