summaryrefslogtreecommitdiff
path: root/lib/_http_agent.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_http_agent.js')
-rw-r--r--lib/_http_agent.js1
1 files changed, 1 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();
};