Skip to content

net: ensure WriteWrap references the handle

Rodrigo Muino Tomonari requested to merge github/fork/indutny/fix/gh-1580 into master

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.

Fix: https://github.com/iojs/io.js/pull/1580

Merge request reports

Loading