0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/src
Anna Henningsen 16362cb868 src: make StreamPipe::Unpipe() more resilient
Clean up `StreamPipe::Unpipe()` to be more resilient against
unexpected exceptions, in particular while executing its
`MakeCallback()` line (which can fail in the presence of
termination exceptions), and clean up the getter/setter part
of the code to match that pattern as well (even though it should
not fail as part of regular operations).

PR-URL: https://github.com/nodejs/node/pull/25716
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
2019-01-31 08:09:38 +01:00
..
inspector inspector, trace_events: make sure messages are sent on a main thread 2019-01-30 11:48:42 -08:00
large_pages src: fix fully-static & large-pages combination 2018-10-31 18:43:53 -04:00
res
tracing src: avoid race condition in tracing code 2019-01-27 20:43:46 +01:00
aliased_buffer.h src: introduce DCHECK macro 2018-12-26 12:25:32 -05:00
async_wrap-inl.h
async_wrap.cc src: pass along errors from PromiseWrap instantiation 2019-01-29 20:01:58 +01:00
async_wrap.h src: schedule destroy hooks in BeforeExit early during bootstrap 2018-12-18 10:56:49 -08:00
base64.h
base_object-inl.h src: introduce DCHECK macro 2018-12-26 12:25:32 -05:00
base_object.h
callback_scope.cc src: move InternalMakeCallback and MakeCallback 2019-01-09 05:49:29 +01:00
cares_wrap.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
connect_wrap.cc
connect_wrap.h
connection_wrap.cc src: pass along errors from stream obj instantiation 2019-01-29 20:01:59 +01:00
connection_wrap.h
debug_utils.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
debug_utils.h src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
env-inl.h worker: enable passing command line flags 2019-01-18 05:39:58 +01:00
env.cc process: split execution into main scripts 2019-01-30 21:03:17 +08:00
env.h process: split execution into main scripts 2019-01-30 21:03:17 +08:00
exceptions.cc src: move node::errno_string into node_errors.h/cc 2019-01-14 18:03:22 +01:00
fs_event_wrap.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
handle_wrap.cc
handle_wrap.h
heap_utils.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
http_parser_adaptor.h deps: introduce llhttp 2018-11-10 17:54:21 -05:00
inspector_agent.cc src: add debug check for inspector uv_async_t 2019-01-30 23:56:25 +01:00
inspector_agent.h inspector: split the HostPort being used and the one parsed from CLI 2018-12-09 06:26:53 +08:00
inspector_io.cc inspector: split the HostPort being used and the one parsed from CLI 2018-12-09 06:26:53 +08:00
inspector_io.h inspector: split the HostPort being used and the one parsed from CLI 2018-12-09 06:26:53 +08:00
inspector_js_api.cc src: simplify SlicedArguments 2019-01-31 00:14:51 +01:00
inspector_socket_server.cc
inspector_socket_server.h
inspector_socket.cc http: switch default parser to llhttp 2018-12-09 21:57:39 +01:00
inspector_socket.h
js_native_api_types.h src: factor out Node.js-agnostic N-APIs 2018-11-17 14:38:51 -08:00
js_native_api_v8_internals.h src: add include for standalone compile 2018-11-21 16:37:59 -08:00
js_native_api_v8.cc src: use Local version of ToBoolean() 2018-12-11 16:00:22 -05:00
js_native_api_v8.h n-api: handle reference delete before finalize 2018-11-23 10:01:54 -05:00
js_native_api.h n-api: mark thread-safe function as stable 2019-01-21 22:30:11 -08:00
js_stream.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
js_stream.h src: fix type mismatch warnings from missing priv 2018-12-03 19:44:15 -08:00
memory_tracker-inl.h
memory_tracker.h src: bundle persistent-to-local methods as class 2018-11-13 05:27:40 +01:00
module_wrap.cc vm: mark scripts as shareable cross-origin 2019-01-29 00:05:15 +01:00
module_wrap.h src: fix type mismatch warnings from missing priv 2018-12-03 19:44:15 -08:00
node_api_types.h n-api: change #ifdef to #if in node_api_types 2019-01-23 05:23:38 +01:00
node_api.cc src: move C++ binding/addon related code into node_binding{.h, .cc} 2018-11-30 20:14:24 -08:00
node_api.h n-api: mark thread-safe function as stable 2019-01-21 22:30:11 -08:00
node_binding.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_binding.h src: unload addons when environment quits 2018-12-19 18:35:38 -08:00
node_buffer.cc src: remove outdated Neuter() call in node_buffer.cc 2019-01-21 20:34:48 +01:00
node_buffer.h
node_code_cache_stub.cc src: remove code cache integrity check 2018-12-18 18:02:08 +08:00
node_config.cc report: remove internalBinding('config').hasReport 2019-01-24 20:36:31 +01:00
node_constants.cc src: move per-process global variables into node::per_process 2019-01-08 00:28:16 +01:00
node_constants.h
node_context_data.h
node_contextify.cc src: pass along errors from vm data wrapper creation 2019-01-29 20:02:04 +01:00
node_contextify.h src: pass along errors from vm data wrapper creation 2019-01-29 20:02:04 +01:00
node_credentials.cc src: move per-process global variables into node::per_process 2019-01-08 00:28:16 +01:00
node_crypto_bio.cc
node_crypto_bio.h src: in-source comments and minor TLS cleanups 2019-01-29 00:27:42 +01:00
node_crypto_clienthello-inl.h tls: remove unused ocsp extension parsing 2018-12-28 12:57:24 -08:00
node_crypto_clienthello.cc tls: remove unused ocsp extension parsing 2018-12-28 12:57:24 -08:00
node_crypto_clienthello.h src: in-source comments and minor TLS cleanups 2019-01-29 00:27:42 +01:00
node_crypto_groups.h
node_crypto.cc src: pass along errors from KeyObject instantiation 2019-01-29 20:02:03 +01:00
node_crypto.h src: pass along errors from KeyObject instantiation 2019-01-29 20:02:03 +01:00
node_domain.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_dtrace.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_dtrace.h src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_encoding.cc
node_env_var.cc src: pass along errors from process obj instantiation 2019-01-29 20:02:01 +01:00
node_errors.cc src: add handle scope to OnFatalError() 2019-01-30 23:44:09 +01:00
node_errors.h src: move node::errno_string into node_errors.h/cc 2019-01-14 18:03:22 +01:00
node_file.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_file.h src: clean clang-tidy errors in node_file.h 2018-10-24 11:52:29 -04:00
node_http2_state.h
node_http2.cc src: turn ROUND_UP into an inline function 2019-01-30 23:40:37 +01:00
node_http2.h src: fix indentation in a few node_http2 enums 2019-01-31 00:12:28 +01:00
node_http_parser_impl.h src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_http_parser_llhttp.cc src: move the declaration of http parser versions into node_metadata.h 2018-12-21 07:46:30 +08:00
node_http_parser_traditional.cc src: move the declaration of http parser versions into node_metadata.h 2018-12-21 07:46:30 +08:00
node_i18n.cc src: pass along errors from i18n converter instantiation 2019-01-29 20:02:05 +01:00
node_i18n.h src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_internals.h process: split execution into main scripts 2019-01-30 21:03:17 +08:00
node_main.cc process: move POSIX credential accessors into node_credentials.cc 2018-12-19 02:44:03 +08:00
node_messaging.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_messaging.h worker: enable transferring WASM modules 2019-01-06 00:54:13 +01:00
node_metadata.cc src: move arch, platform and release into node_metadata.cc 2019-01-06 10:44:57 +08:00
node_metadata.h src: move arch, platform and release into node_metadata.cc 2019-01-06 10:44:57 +08:00
node_mutex.h
node_native_module.cc process: split execution into main scripts 2019-01-30 21:03:17 +08:00
node_native_module.h process: split execution into main scripts 2019-01-30 21:03:17 +08:00
node_object_wrap.h
node_options-inl.h src: add kUInteger parsing 2018-12-20 09:31:52 -05:00
node_options.cc src: simplify inspector initialization in node::Start() 2019-01-27 21:40:24 +01:00
node_options.h src: simplify inspector initialization in node::Start() 2019-01-27 21:40:24 +01:00
node_os.cc os: implement os.type() using uv_os_uname() 2019-01-25 08:54:55 -05:00
node_perf_common.h src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_perf.cc src: simplify SlicedArguments 2019-01-31 00:14:51 +01:00
node_perf.h src: pass along errors from perf obj instantiation 2019-01-29 20:02:02 +01:00
node_persistent.h src: bundle persistent-to-local methods as class 2018-11-13 05:27:40 +01:00
node_platform.cc src: ensure no more platform foreground tasks after Deinit 2019-01-27 16:18:02 +01:00
node_platform.h
node_postmortem_metadata.cc src: mark some global state as const 2018-12-16 20:21:45 -08:00
node_process_events.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_process_methods.cc process: allow reading umask in workers 2019-01-17 16:32:21 -05:00
node_process_object.cc src: pass along errors from process obj instantiation 2019-01-29 20:02:01 +01:00
node_process.h src: pass along errors from process obj instantiation 2019-01-29 20:02:01 +01:00
node_provider.d
node_report_module.cc report: remove InitializeReport() 2019-01-23 17:22:56 +01:00
node_report_utils.cc report: represent numbers as numbers 2019-01-27 20:38:42 +01:00
node_report.cc report: use consistent format for dumpEventTime 2019-01-30 23:39:23 +01:00
node_report.h report: refactor JSON writer 2019-01-27 20:38:41 +01:00
node_revert.h src: pass along errors from --security-reverts 2019-01-22 22:53:26 +01:00
node_root_certs.h crypto: update root certificates 2018-12-21 15:54:43 +01:00
node_serdes.cc v8: enable inline WASM in serialization API 2019-01-06 00:52:57 +01:00
node_stat_watcher.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_stat_watcher.h
node_symbols.cc src: move symbols binding into node_symbols.cc 2018-12-24 07:57:13 +08:00
node_task_queue.cc src: remove unused isolate variable 2019-01-06 19:43:19 +01:00
node_trace_events.cc trace_events: move SetupTraceCategoryState into node_trace_events.cc 2018-12-21 16:48:25 +08:00
node_types.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_union_bytes.h process: specialize building and storage of process.config 2018-12-11 06:40:09 +08:00
node_url.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_url.h src: pass along MaybeLocal<> state from URL::ToObject() 2018-12-31 01:10:36 +01:00
node_util.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_v8.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node_version.h n-api: mark thread-safe function as stable 2019-01-21 22:30:11 -08:00
node_watchdog.cc src: do not alias new and old signal masks 2018-12-07 10:13:51 -08:00
node_watchdog.h
node_win32_etw_provider-inl.h
node_win32_etw_provider.cc
node_win32_etw_provider.h
node_worker.cc process: split execution into main scripts 2019-01-30 21:03:17 +08:00
node_worker.h worker: enable passing command line flags 2019-01-18 05:39:58 +01:00
node_zlib.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
node.cc process: split execution into main scripts 2019-01-30 21:03:17 +08:00
node.d
node.h src: make deleted functions public in node.h 2019-01-31 07:58:01 +01:00
node.stp
notrace_macros.py test: do not lint macros files (again) 2018-12-11 12:16:40 +01:00
pipe_wrap.cc src: pass along errors from stream obj instantiation 2019-01-29 20:01:59 +01:00
pipe_wrap.h src: pass along errors from stream obj instantiation 2019-01-29 20:01:59 +01:00
process_wrap.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
req_wrap-inl.h
req_wrap.h
sharedarraybuffer_metadata.cc worker: use engine-provided deleter for SharedArrayBuffers 2019-01-03 23:44:52 +01:00
sharedarraybuffer_metadata.h worker: use engine-provided deleter for SharedArrayBuffers 2019-01-03 23:44:52 +01:00
signal_wrap.cc src: declare process-related C++ methods in node_process.h 2019-01-11 20:11:55 +08:00
spawn_sync.cc src: turn ROUND_UP into an inline function 2019-01-30 23:40:37 +01:00
spawn_sync.h src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
stream_base-inl.h src: add DCHECK macros 2018-12-24 10:41:15 +01:00
stream_base.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
stream_base.h http2: allow fully synchronous _final() 2019-01-23 16:32:20 +01:00
stream_pipe.cc src: make StreamPipe::Unpipe() more resilient 2019-01-31 08:09:38 +01:00
stream_pipe.h
stream_wrap.cc src: pass along errors from stream obj instantiation 2019-01-29 20:01:59 +01:00
stream_wrap.h src: fix type mismatch warnings from missing priv 2018-12-03 19:44:15 -08:00
string_bytes.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
string_bytes.h src: fulfill Maybe contract in InlineDecoder 2018-12-30 20:15:39 +01:00
string_decoder-inl.h
string_decoder.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
string_decoder.h
string_search.h src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
tcp_wrap.cc src: pass along errors from stream obj instantiation 2019-01-29 20:01:59 +01:00
tcp_wrap.h src: pass along errors from stream obj instantiation 2019-01-29 20:01:59 +01:00
timers.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
tls_wrap.cc src: in-source comments and minor TLS cleanups 2019-01-29 00:27:42 +01:00
tls_wrap.h src: in-source comments and minor TLS cleanups 2019-01-29 00:27:42 +01:00
tty_wrap.cc src: fix type mismatch warnings from missing priv 2018-12-03 19:44:15 -08:00
tty_wrap.h src: fix type mismatch warnings from missing priv 2018-12-03 19:44:15 -08:00
udp_wrap.cc src: pass along errors from stream obj instantiation 2019-01-29 20:01:59 +01:00
udp_wrap.h src: pass along errors from stream obj instantiation 2019-01-29 20:01:59 +01:00
util-inl.h src: simplify SlicedArguments 2019-01-31 00:14:51 +01:00
util.cc src: use generic helper for splitting strings 2019-01-09 00:26:01 +01:00
util.h src: simplify SlicedArguments 2019-01-31 00:14:51 +01:00
uv.cc src: reduce includes of node_internals.h 2019-01-21 07:54:42 +01:00
v8abbr.h src: update postmortem constant 2018-12-06 15:25:59 +01:00
v8ustack.d