fix keep alive timeout for agentkeepalive 2.x (#600)
(cherry picked from commit 902f074ae0cb52979054a8217b7a9a240570935f)
This commit is contained in:
@ -93,7 +93,8 @@ HttpConnector.prototype.makeAgentConfig = function (config) {
|
|||||||
keepAliveMsecs: config.keepAliveInterval,
|
keepAliveMsecs: config.keepAliveInterval,
|
||||||
maxSockets: config.maxSockets,
|
maxSockets: config.maxSockets,
|
||||||
maxFreeSockets: config.keepAliveMaxFreeSockets,
|
maxFreeSockets: config.keepAliveMaxFreeSockets,
|
||||||
freeSocketKeepAliveTimeout: config.keepAliveFreeSocketTimeout
|
freeSocketKeepAliveTimeout: config.keepAliveFreeSocketTimeout,
|
||||||
|
keepAliveTimeout: config.keepAliveFreeSocketTimeout // support agentkeepalive 2.x
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.useSsl) {
|
if (this.useSsl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user