agentkeepalive
Advanced tools
Comparing version 3.0.0 to 3.1.0
3.1.0 / 2017-02-20 | ||
================== | ||
* feat: timeout support humanize ms (#48) | ||
3.0.0 / 2016-12-20 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -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); |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27532
462
1
+ Addedhumanize-ms@^1.2.0
+ Addedhumanize-ms@1.2.1(transitive)
+ Addedms@2.1.3(transitive)