Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
forever-agent
Advanced tools
Weekly downloads
Package description
The forever-agent npm package is an HTTP/HTTPS Agent that keeps connection alive between requests. It is used primarily to reuse TCP connections in Node.js HTTP networking, which can lead to improved performance in some scenarios.
Connection Reuse
This feature allows the agent to keep the TCP connection open for future requests to the same host, which can reduce the latency associated with establishing new TCP connections for each request.
const http = require('http');
const ForeverAgent = require('forever-agent');
const agent = new ForeverAgent();
http.request({
host: 'example.com',
agent: agent
});
agentkeepalive is another npm package that provides similar functionality to forever-agent. It offers an HTTP and HTTPS Agent which keeps socket connections alive between keep-alive requests. It is more actively maintained and offers additional features such as per-host connection limiting.
http-keep-alive-agent is a package that also provides keep-alive functionality for HTTP connections in Node.js. It is designed to be a drop-in replacement for the standard HTTP Agent to enable keep-alive by default.
got is a more comprehensive HTTP request library for Node.js that includes keep-alive functionality among many other features. It is designed to be a nicer and more user-friendly alternative to the built-in http module and includes retry support, stream support, and more.
Readme
HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.
FAQs
HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.
The npm package forever-agent receives a total of 13,650,624 weekly downloads. As such, forever-agent popularity was classified as popular.
We found that forever-agent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.