diff --git a/lib/_http_agent.js b/lib/_http_agent.js index 40eb2a352b8e70..7fb4a4929c35f5 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -45,18 +45,10 @@ const kOnKeylog = Symbol('onkeylog'); // ClientRequest.onSocket(). The Agent is now *strictly* // concerned with managing a connection pool. -const kReusedHandle = Symbol('kReusedHandle'); class ReusedHandle { constructor(type, handle) { this.type = type; this.handle = handle; - // We need keep the resource object alive from this object, because - // domains rely on GC of the resource object for lifetime tracking. - // TODO(addaleax): This should really apply to all uses of - // AsyncWrap::AsyncReset() when the resource is not the AsyncWrap object - // itself. However, HTTPClientAsyncResource and HTTPServerAsyncResource - // hold on to other objects, inhibiting GC. - handle[kReusedHandle] = this; } }