This package provides a basic HTTP and HTTPS connection pooling agent for Node.js, designed to reuse sockets for improved performance by reducing the overhead of establishing new TCP connections. Originally published as version 0.0.1 in December 2012, the package appears to be abandoned, with no significant updates or active development since its initial release. Its primary differentiator was its simplicity, aiming to complement Node.js's default `Agent` rather than replace it. However, the Node.js ecosystem has evolved significantly since then, with native `http.Agent` offering `keepAlive` functionality and more feature-rich, actively maintained alternatives like `agentkeepalive` now widely available. Due to its age and lack of maintenance, it is not recommended for use in modern applications.
npm install keep-alive-agentVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to initialize and use the `KeepAliveAgent` for both HTTP and HTTPS requests, reusing sockets for multiple connections.
Migrate to Node.js's built-in `http.Agent` with `keepAlive: true` or use actively maintained alternatives like `agentkeepalive` for enhanced features and stability.
Do not use this package. Ensure your Node.js runtime is updated to a supported version (Node.js 16 or newer recommended) and use its native `http.Agent` with `keepAlive: true` or a modern alternative like `agentkeepalive`.
Switch to `agentkeepalive` or configure Node.js's native `http.Agent` with appropriate `keepAlive` and `timeout` settings to align client and server expectations.
Replace this package with a well-supported and actively maintained alternative to ensure stability, performance, and security.
This package is unlikely to work correctly with modern Node.js. Use `new http.Agent({ keepAlive: true })` or `new (require('agentkeepalive').HttpAgent)()` instead.This package is CommonJS-only and fundamentally too old for modern Node.js. Migrate to a modern keep-alive solution that supports ESM, such as `agentkeepalive` or Node.js's built-in `Agent` features.
This error is common with older `keep-alive` implementations. Upgrade to `agentkeepalive` (which includes better timeout handling) or ensure your client-side `keepAlive` and `timeout` settings are less than the server's `keepAliveTimeout`.
No dependency data recorded yet.