Upper bound on concurrent sockets per shared keep-alive agent.
The Node defaults are unbounded (maxSockets: Infinity), which lets bursts
open far more connections than connection reuse can benefit from and lets
idle keep-alive sockets linger until the server closes them. 20 concurrent
sockets comfortably covers legitimate pagination concurrency while keeping
pressure on AniList bounded; freed sockets are retained up to
MAX_FREE_SOCKETS with LIFO scheduling so the warmest connection is
reused first.
Upper bound on concurrent sockets per shared keep-alive agent.
The Node defaults are unbounded (
maxSockets: Infinity), which lets bursts open far more connections than connection reuse can benefit from and lets idle keep-alive sockets linger until the server closes them. 20 concurrent sockets comfortably covers legitimate pagination concurrency while keeping pressure on AniList bounded; freed sockets are retained up to MAX_FREE_SOCKETS with LIFO scheduling so the warmest connection is reused first.