Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agentkeepalive

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agentkeepalive - npm Package Compare versions

Comparing version 3.3.0 to 3.4.0

9

History.md
3.4.0 / 2018-02-27
==================
**features**
* [[`bc7cadb`](http://github.com/node-modules/agentkeepalive/commit/bc7cadb30ecd2071e2b341ac53ae1a2b8155c43d)] - feat: use socket custom freeSocketKeepAliveTimeout first (#59) (fengmk2 <<fengmk2@gmail.com>>)
**others**
* [[`138eda8`](http://github.com/node-modules/agentkeepalive/commit/138eda81e10b632aaa87bea0cb66d8667124c4e8)] - doc: fix `keepAliveMsecs` params description (#55) (Hongcai Deng <<admin@dhchouse.com>>)
3.3.0 / 2017-06-20

@@ -3,0 +12,0 @@ ==================

12

lib/_http_agent.js

@@ -122,3 +122,6 @@ // Copyright Joyent, Inc. and other Node contributors.

// set free keepalive timer
socket.setTimeout(self.freeSocketKeepAliveTimeout);
// try to use socket custom freeSocketKeepAliveTimeout first
const freeSocketKeepAliveTimeout = socket.freeSocketKeepAliveTimeout || self.freeSocketKeepAliveTimeout;
socket.setTimeout(freeSocketKeepAliveTimeout);
debug(`push to free socket queue and wait for ${freeSocketKeepAliveTimeout}ms`);
// [patch end]

@@ -183,3 +186,4 @@ }

Agent.prototype.addRequest = function addRequest(req, options) {
Agent.prototype.addRequest = function addRequest(req, options, port/*legacy*/,
localAddress/*legacy*/) {
// Legacy API: addRequest(req, host, port, localAddress)

@@ -189,4 +193,4 @@ if (typeof options === 'string') {

host: options,
port: arguments[2],
localAddress: arguments[3]
port,
localAddress
};

@@ -193,0 +197,0 @@ }

{
"name": "agentkeepalive",
"version": "3.3.0",
"version": "3.4.0",
"description": "Missing keepalive http.Agent",

@@ -48,3 +48,3 @@ "main": "index.js",

"ci": {
"version": "4.3.2, 4, 6, 7, 8"
"version": "4.3.2, 4, 6, 8, 9"
},

@@ -51,0 +51,0 @@ "author": "fengmk2 <fengmk2@gmail.com> (https://fengmk2.com)",

@@ -47,4 +47,4 @@ # agentkeepalive

other requests in the future. Default = `true`.
* `keepAliveMsecs` {Number} When using HTTP KeepAlive, how often
to send TCP KeepAlive packets over sockets being kept alive.
* `keepAliveMsecs` {Number} When using the keepAlive option, specifies the initial delay
for TCP Keep-Alive packets. Ignored when the keepAlive option is false or undefined. Defaults to 1000.
Default = `1000`. Only relevant if `keepAlive` is set to `true`.

@@ -51,0 +51,0 @@ * `freeSocketKeepAliveTimeout`: {Number} Sets the free socket to timeout

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc