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 d791a961c7..60fff343dc 100644
--- a/lib/_http_agent.js
+++ b/lib/_http_agent.js
@@ -168,6 +168,7 @@ Agent.prototype.addRequest = function addRequest(req, options, port/*legacy*/,
var socket = this.freeSockets[name].shift();
// Assign the handle a new asyncId and run any init() hooks.
socket._handle.asyncReset();
+ socket[async_id_symbol] = socket._handle.getAsyncId();
debug('have free socket');
// don't leak