diff --git a/package.json b/package.json index 056ed4b5d..d0bdb7935 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ }, "license": "Apache-2.0", "dependencies": { - "agentkeepalive": "^2.2.0", + "agentkeepalive": "^3.4.1", "chalk": "^1.0.0", "lodash": "2.4.2", "lodash.get": "^4.4.2", diff --git a/src/lib/connectors/http.js b/src/lib/connectors/http.js index b5e8e5113..25b7f30c2 100644 --- a/src/lib/connectors/http.js +++ b/src/lib/connectors/http.js @@ -94,7 +94,6 @@ HttpConnector.prototype.makeAgentConfig = function (config) { maxSockets: config.maxSockets, maxFreeSockets: config.keepAliveMaxFreeSockets, freeSocketKeepAliveTimeout: config.keepAliveFreeSocketTimeout, - keepAliveTimeout: config.keepAliveFreeSocketTimeout // support agentkeepalive 2.x }; if (this.useSsl) {