mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
4488a69fac
Keeping list of all sockets that were sent to child process causes memory leak and thus unacceptable (see #4587). However `server.close()` should still work properly. This commit introduces two options: * child.send(socket, { track: true }) - will send socket and track its status. You should use it when you want to receive `close` event on sent sockets. * child.send(socket) - will send socket without tracking it status. This performs much better, because of smaller number of RTT between master and child. With both of these options `server.close()` will wait for all sent sockets to get closed. |
||
---|---|---|
.. | ||
about | ||
api | ||
api_assets | ||
blog | ||
community | ||
download | ||
images | ||
logos | ||
blog.html | ||
changelog-foot.html | ||
changelog-head.html | ||
cla.html | ||
favicon.ico | ||
full-white-stripe.jpg | ||
index.html | ||
mac_osx_nodejs_installer_logo.png | ||
node.1 | ||
pipe.css | ||
robots.txt | ||
rss.xml | ||
sh_javascript.min.js | ||
sh_main.js | ||
sh_vim-dark.css | ||
sh.css | ||
template.html | ||
thin-white-stripe.jpg | ||
trademark-policy.pdf | ||
v0.4_announcement.html |