diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/_http_agent.js | 1 | ||||
-rw-r--r-- | lib/_http_client.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/_http_agent.js b/lib/_http_agent.js index 25ff16fea1..dcb5ed376d 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -341,6 +341,7 @@ Agent.prototype.keepSocketAlive = function keepSocketAlive(socket) { Agent.prototype.reuseSocket = function reuseSocket(socket, req) { debug('have free socket'); + req.reusedSocket = true; socket.ref(); }; diff --git a/lib/_http_client.js b/lib/_http_client.js index 3eccf6ac10..957d2d6403 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -195,6 +195,7 @@ function ClientRequest(input, options, cb) { this.upgradeOrConnect = false; this.parser = null; this.maxHeadersCount = null; + this.reusedSocket = false; var called = false; |