| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5bc5161 commit 49a07f7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,18 +50,10 @@ const kOnKeylog = Symbol('onkeylog'); | |||
| 50 | 50 | // ClientRequest.onSocket(). The Agent is now *strictly* | |
| 51 | 51 | // concerned with managing a connection pool. | |
| 52 | 52 | ||
| 53 | - const kReusedHandle = Symbol('kReusedHandle'); | ||
| 54 | 53 | class ReusedHandle { | |
| 55 | 54 | constructor(type, handle) { | |
| 56 | 55 | this.type = type; | |
| 57 | 56 | this.handle = handle; | |
| 58 | - // We need keep the resource object alive from this object, because | ||
| 59 | - // domains rely on GC of the resource object for lifetime tracking. | ||
| 60 | - // TODO(addaleax): This should really apply to all uses of | ||
| 61 | - // AsyncWrap::AsyncReset() when the resource is not the AsyncWrap object | ||
| 62 | - // itself. However, HTTPClientAsyncResource and HTTPServerAsyncResource | ||
| 63 | - // hold on to other objects, inhibiting GC. | ||
| 64 | - handle[kReusedHandle] = this; | ||
| 65 | 57 | } | |
| 66 | 58 | } | |
| 67 | 59 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments