Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: ensure Write/ShutdownWrap references handle
`StreamBase::AfterWrite` is passing handle as an argument to the `afterWrite` function in net.js. Thus GC should not collect the handle and the request separately and assume that they are tied together. With this commit - request will always outlive the StreamBase instance, helping us survive the GC pass. Same applies to the ShutdownWrap instances, they should never be collected after the StreamBase instance. Fix: #1580 PR-URL: #1590 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
- Loading branch information