node/lib/internal
Santiago Gimeno 4d62b099b4 net: handle socket.write(cb) edge case
Make sure that when calling `write()` on a connecting socket, the
callback is called if the socket is destroyed before the connection is
established.

Fixes: https://github.com/nodejs/node/issues/30841
PR-URL: https://github.com/nodejs/node/pull/45922
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-01-05 13:11:43 -03:00
..
assert
bootstrap bootstrap: optimize modules loaded in the built-in snapshot 2023-01-01 10:44:49 +00:00
child_process
cluster
console bootstrap: lazy load non-essential modules 2022-12-13 09:42:43 +00:00
crypto crypto: fix CryptoKey prototype WPT 2023-01-05 13:11:34 -03:00
debugger debugger: refactor console in lib/internal/debugger/inspect.js 2023-01-05 13:11:41 -03:00
dns bootstrap: lazy load non-essential modules 2022-12-13 09:42:43 +00:00
fs lib: use kEmptyObject as default value for options 2023-01-05 13:11:42 -03:00
http2 lib: use kEmptyObject as default value for options 2023-01-05 13:11:42 -03:00
legacy
main modules: move modules/cjs/helpers.js to modules/helpers.js 2023-01-01 10:44:48 +00:00
modules bootstrap: make CJS loader snapshotable 2023-01-01 10:44:49 +00:00
per_context crypto: refactor ArrayBuffer to bigint conversion utils 2022-12-12 16:17:11 +00:00
perf
policy
process process,worker: ensure code after exit() effectless 2023-01-05 13:11:37 -03:00
readline readline: improve robustness against prototype mutation 2022-12-13 09:42:43 +00:00
repl
source_map lib: lazy-load deps in source_map_cache.js 2023-01-01 10:44:48 +00:00
streams stream: avoid premature close when will not emit close 2022-11-21 15:20:46 -05:00
test
test_runner test_runner: use os.availableParallelism() 2023-01-05 13:11:38 -03:00
tls
util modules: move modules/cjs/helpers.js to modules/helpers.js 2023-01-01 10:44:48 +00:00
v8
vm modules: move callbacks and conditions into modules/esm/utils.js 2023-01-01 10:44:49 +00:00
watch_mode
webstreams stream: refactor to use validateFunction 2023-01-05 13:11:42 -03:00
worker
abort_controller.js lib: improve transferable abort controller exec 2022-11-24 11:46:22 -05:00
assert.js
async_hooks.js bootstrap: lazy load non-essential modules 2022-12-13 09:42:43 +00:00
blob.js buffer: remove unnecessary lazy loading 2022-12-13 09:42:46 +00:00
blocklist.js
buffer.js util: use private symbols in JS land directly 2022-12-13 09:42:45 +00:00
child_process.js
cli_table.js
constants.js
dgram.js
encoding.js util: add fast path for text-decoder fatal flag 2023-01-05 13:11:35 -03:00
error_serdes.js
errors.js net: handle socket.write(cb) edge case 2023-01-05 13:11:43 -03:00
event_target.js events: fix violation of symbol naming convention 2023-01-05 13:11:43 -03:00
file.js
fixed_queue.js
freelist.js
freeze_intrinsics.js
heap_utils.js
histogram.js
http.js
idna.js
inspector_async_hook.js
js_stream_socket.js
linkedlist.js
mime.js
net.js net: add autoSelectFamily and autoSelectFamilyAttemptTimeout options 2022-12-12 16:17:49 +00:00
options.js
priority_queue.js
promise_hooks.js
querystring.js
readme.md
repl.js
socket_list.js
socketaddress.js lib: use kEmptyObject as default value for options 2023-01-05 13:11:42 -03:00
stream_base_commons.js
structured_clone.js
timers.js
trace_events_async_hooks.js
tty.js
url.js
util.js crypto: fix globalThis.crypto this check 2023-01-05 13:11:34 -03:00
v8_prof_polyfill.js
v8_prof_processor.js
validators.js lib: update JSDoc of getOwnPropertyValueOrDefault 2023-01-05 13:11:43 -03:00
vm.js vm: refactor to use validateStringArray 2023-01-05 13:11:43 -03:00
wasm_web_api.js
watchdog.js
webidl.js
worker.js

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.