0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Matteo Collina d82bedcb7b console: avoid adding infinite error listeners
If the console destination is a unix pipe (net.Socket), write() is
async. If the destination is broken, we are adding an 'error' event
listener to avoid a process crash. This PR makes sure that we are adding
that listener only once.

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

PR-URL: https://github.com/nodejs/node/pull/16770
Fixes: https://github.com/nodejs/node/issues/16767
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
2017-11-08 11:22:44 +00:00
..
internal http2: simplify subsequent rstStream calls 2017-11-07 12:20:50 -05:00
_http_agent.js http: use arrow fns for lexical this in Agent 2017-11-04 17:00:32 -07:00
_http_client.js http: use 'connect' event only if socket is connecting 2017-11-06 22:15:48 +01:00
_http_common.js
_http_incoming.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
_http_outgoing.js http: improve errors thrown in header validation 2017-11-06 18:24:34 +08:00
_http_server.js http, http2: add 103 Early Hints status code 2017-11-04 11:13:52 -04:00
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js stream: complete migration to internal/errors 2017-10-29 18:57:28 +01:00
_stream_transform.js
_stream_wrap.js
_stream_writable.js stream: complete migration to internal/errors 2017-10-29 18:57:28 +01:00
_tls_common.js
_tls_legacy.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
_tls_wrap.js tls: accept array of protocols in TLSSocket 2017-11-04 11:36:16 -04:00
.eslintrc.yaml
assert.js util,assert: expose util.isDeepStrictEqual() 2017-10-25 22:30:37 -07:00
async_hooks.js
buffer.js buffer: move setupBufferJS to internal 2017-10-25 10:36:17 -07:00
child_process.js child_process: restore exec{File}Sync error props 2017-10-23 14:09:11 +02:00
cluster.js
console.js console: avoid adding infinite error listeners 2017-11-08 11:22:44 +00:00
constants.js
crypto.js crypto: migrate setFipsCrypto to internal/errors 2017-10-27 08:13:01 -07:00
dgram.js dgram: migrate bufferSize to use internal/errors 2017-11-02 11:58:38 -07:00
dns.js
domain.js
events.js events: onceWrapper apply directly with arguments 2017-10-21 09:29:09 -04:00
fs.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
http2.js
http.js
https.js https: refactor to use http internals 2017-10-26 15:47:29 -07:00
inspector.js
module.js module: revert #3384 DEP0019 EOL 2017-10-31 09:14:19 -07:00
net.js test,net: remove scatological terminology 2017-11-01 22:34:17 -07:00
os.js os: migrate node_os.cc to internal/errors 2017-11-02 11:58:38 -07:00
path.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
perf_hooks.js
process.js
punycode.js
querystring.js querystring: convert to using internal/errors 2017-10-28 14:04:53 -04:00
readline.js
repl.js repl: show proxies as Proxy objects 2017-11-07 19:51:51 +01:00
stream.js
string_decoder.js
sys.js
timers.js timers: cleanup extraneous property on Immediates 2017-10-23 11:02:53 +02:00
tls.js http, tls: better support for IPv6 addresses 2017-11-02 21:05:20 -04:00
tty.js tty: convert to internal/errors using SystemError 2017-11-02 11:58:38 -07:00
url.js lib: move duplicate spliceOne into internal/util 2017-10-20 15:51:20 -04:00
util.js util,assert: expose util.isDeepStrictEqual() 2017-10-25 22:30:37 -07:00
v8.js v8: migrate setFlagsFromString to internal/errors 2017-10-29 17:04:27 -07:00
vm.js vm: deprecate vm.runInDebugContext 2017-10-23 17:17:16 +02:00
zlib.js zlib: gracefully set windowBits from 8 to 9 2017-10-29 20:14:01 +01:00