Files
node/lib/internal
Anna Henningsen c45313b3ad worker: perform initial port.unref() before preload modules
The refcount of the internal communication port is relevant for
stdio, but the `port.unref()` call effectively resets any `.ref()`
calls happening during stdio operations happening before it.

Therefore, do the `.unref()` call before loading preload modules,
which may cause stdio operations.

Fixes: https://github.com/nodejs/node/issues/31777

PR-URL: https://github.com/nodejs/node/pull/33455
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
2020-05-21 17:50:04 -07:00
..
2020-03-30 17:21:13 +02:00
2020-05-14 12:39:23 -05:00
2020-01-22 15:33:03 +01:00
…
2020-05-14 12:39:23 -05:00
2020-01-22 15:33:03 +01:00
…
…
…
2019-11-30 13:58:25 +01:00
2019-12-17 08:11:13 -05:00
2020-05-16 06:42:16 +02:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.