Socket
Socket
Sign inDemoInstall

agentkeepalive

Package Overview
Dependencies
Maintainers
1
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.0.0 to 3.1.0

5

History.md
3.1.0 / 2017-02-20
==================
* feat: timeout support humanize ms (#48)
3.0.0 / 2016-12-20

@@ -3,0 +8,0 @@ ==================

5

lib/agent.js

@@ -12,2 +12,3 @@ /**

const OriginalAgent = require('./_http_agent').Agent;
const ms = require('humanize-ms');

@@ -26,2 +27,3 @@ class Agent extends OriginalAgent {

}
options.freeSocketKeepAliveTimeout = ms(options.freeSocketKeepAliveTimeout);

@@ -32,3 +34,3 @@ // Sets the socket to timeout after timeout milliseconds of inactivity on the socket.

options.timeout = options.freeSocketKeepAliveTimeout * 2;
// make sure socket default inactivity timeout >= 30000
// make sure socket default inactivity timeout >= 30s
if (options.timeout < 30000) {

@@ -38,2 +40,3 @@ options.timeout = 30000;

}
options.timeout = ms(options.timeout);

@@ -40,0 +43,0 @@ super(options);

6

package.json
{
"name": "agentkeepalive",
"version": "3.0.0",
"version": "3.1.0",
"description": "Missing keepalive http.Agent",

@@ -32,3 +32,5 @@ "main": "index.js",

],
"dependencies": {},
"dependencies": {
"humanize-ms": "^1.2.0"
},
"devDependencies": {

@@ -35,0 +37,0 @@ "egg-bin": "^1.9.1",

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