node/lib/internal
Daniel Bevenius 47d6cedd85
http2: add unknownProtocol timeout
This commit add a configuration options named unknownProtocolTimeout
which can be specified to set a value for the timeout in milliseconds
that a server should wait when an unknowProtocol is sent to it. When
this happens a timer will be started and the if the socket has not been
destroyed during that time the timer callback will destoy it.

Refs: https://hackerone.com/reports/1043360
CVE-ID: CVE-2021-22883
PR-URL: https://github.com/nodejs-private/node-private/pull/246
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2021-02-23 11:25:59 +00:00
..
assert assert: refactor to avoid unsafe array iteration 2021-02-22 12:21:36 +01:00
bootstrap doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
child_process doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
cluster cluster: fix edge cases that throw ERR_INTERNAL_ASSERTION 2021-01-11 11:26:46 +01:00
console doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
crypto doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
dns lib: refactor to use validateString 2021-01-22 19:56:34 -08:00
fs fs: use createDeferredPromise() in promises.watch() 2021-02-17 23:33:38 -05:00
http2 http2: add unknownProtocol timeout 2021-02-23 11:25:59 +00:00
main doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
modules doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
per_context doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
perf perf_hooks: complete overhaul of the implementation 2021-02-22 08:46:11 -08:00
policy policy: fix cascade getting scope 2021-02-15 16:04:58 -06:00
process doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
readline readline: refactor to use more primordials 2020-12-04 18:34:32 +00:00
repl repl: refactor to avoid unsafe array iteration 2021-02-15 23:06:35 +01:00
source_map errors: align source-map stacks with spec 2021-02-12 14:09:35 -08:00
streams doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
test lib: expose primordials object 2021-01-18 11:43:32 +01:00
util doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
vm lib: refactor to use validateObject 2021-01-28 12:53:50 +01:00
worker lib: make safe primordials safe to iterate 2020-12-15 13:25:55 +00:00
abort_controller.js events: graduate Event, EventTarget, AbortController 2020-11-23 09:33:41 -08:00
assert.js benchmark,doc,lib,test: prepare for padding lint rule 2019-11-30 06:28:29 -08:00
async_hooks.js async_hooks: set unhandledRejection async context 2021-02-13 16:49:21 +02:00
blob.js buffer: make Blob's constructor more spec-compliant 2021-02-17 14:08:28 +01:00
blocklist.js lib: refactor to use validateString 2021-01-22 19:56:34 -08:00
buffer.js buffer: add base64url encoding option 2021-01-18 12:08:20 +01:00
child_process.js lib: refactor to use validateObject 2021-01-28 12:53:50 +01:00
cli_table.js src: remove _third_party_main support 2020-06-24 15:20:59 -07:00
constants.js lib: replace charCodeAt with fixed Unicode 2020-06-19 07:46:37 -07:00
dgram.js lib: refactor to use validateFunction 2021-01-27 20:46:54 +02:00
dtrace.js lib: move DTRACE_* probes out of global scope 2019-03-12 14:19:36 +00:00
encoding.js doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
error_serdes.js lib: use global Error constructors from primordials 2020-10-07 13:44:19 +00:00
errors.js perf_hooks: complete overhaul of the implementation 2021-02-22 08:46:11 -08:00
event_target.js events: change EventTarget handler exception behavior 2021-02-15 20:10:07 +02:00
fixed_queue.js lib: unnecessary const assignment for class 2020-04-24 22:53:36 +03:00
freelist.js http: remove unused hasItems() from freelist 2019-12-03 15:00:45 -08:00
freeze_intrinsics.js doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
heap_utils.js worker: add ability to take heap snapshot from parent thread 2020-02-03 07:04:13 -08:00
histogram.js perf_hooks: introduce createHistogram 2021-02-14 13:03:49 -08:00
http.js perf_hooks: complete overhaul of the implementation 2021-02-22 08:46:11 -08:00
idna.js lib: convert legacy process.binding to internalBinding 2019-02-18 07:21:48 +01:00
inspector_async_hook.js async_hooks: refactor to use more primordials 2020-11-20 20:10:19 +00:00
js_stream_socket.js lib: improve debuglog() performance 2020-05-30 17:24:43 -04:00
linkedlist.js
net.js net: refactor to use more primordials 2020-12-07 10:08:03 -08:00
options.js lib: refactor to use optional chaining in internal/options.js 2021-01-24 08:19:32 -08:00
priority_queue.js lib: remove unused code 2020-12-29 15:49:09 +00:00
querystring.js doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
readme.md doc: clarify text about internal module changes 2018-07-31 08:28:40 +03:00
repl.js lib: use Number.parseInt from primordials 2020-10-07 13:44:20 +00:00
socket_list.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
stream_base_commons.js lib: refactor to use validateCallback 2020-12-29 15:48:57 +00:00
timers.js timers: fix unsafe array iteration 2021-02-06 05:17:49 -08:00
tls.js tls: refactor to avoid unsafe array iteration 2021-01-11 12:44:41 +01:00
trace_events_async_hooks.js lib: replace charCodeAt with fixed Unicode 2020-06-19 07:46:37 -07:00
tty.js doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
url.js doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
util.js util: add internal createDeferredPromise() 2021-01-29 09:50:34 -05:00
v8_prof_polyfill.js lib: remove v8_prof_polyfill from eslint ignore list 2021-01-04 19:01:37 +00:00
v8_prof_processor.js doc,lib: prepare for stricter multi-line array linting 2021-02-19 09:55:35 -08:00
validators.js lib: fix WebIDL object and dictionary type conversion 2021-02-08 17:02:16 -08:00
watchdog.js src,lib: make ^C print a JS stack trace 2020-01-28 13:52:27 +08:00
worker.js lib: refactor to use validateArray 2021-01-20 22:41:00 +01: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.