0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
iskore 32b641e528 http: fixed socket.setEncoding fatal error
Applied updates from previous pull-requests to disallow
socket.setEncoding before a http connection is parsed.
Wrapped `socket.setEncoding` to throw an error.
This previously resulted in a fatal error.

PR-URL: https://github.com/nodejs/node/pull/33405
Fixes: https://github.com/nodejs/node/issues/18118
Refs: https://github.com/nodejs/node/pull/18178
Refs: https://github.com/nodejs/node/pull/19344
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2020-05-23 21:29:49 +02:00
..
addons.md doc: normalize C++ code block info strings 2020-05-23 17:21:20 +02:00
assert.md 2020-05-05, Version 14.2.0 (Current) 2020-05-05 20:24:37 +02:00
async_hooks.md async_hooks: move PromiseHook handler to JS 2020-05-09 07:52:22 +02:00
buffer.md doc: fix Buffer.from(object) documentation 2020-05-23 19:23:45 +02:00
child_process.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
cli.md doc: mention --experimental-top-level-await flag 2020-05-23 17:29:42 +02:00
cluster.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
console.md 2020-05-05, Version 14.2.0 (Current) 2020-05-05 20:24:37 +02:00
crypto.md doc: update function description for decipher.setAAD 2020-05-19 19:28:36 +02:00
debugger.md doc: reword possessive form of Node.js in debugger.md 2020-02-17 17:32:53 -08:00
deprecations.md repl: remove deprecated repl.memory function 2020-05-23 03:12:06 +02:00
dgram.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
dns.md 2020-04-14, Version 13.13.0 (Current) 2020-04-14 20:22:41 +02:00
documentation.md doc: add link to sem-ver info 2020-03-02 04:07:33 +00:00
domain.md
embedding.md doc: normalize C++ code block info strings 2020-05-23 17:21:20 +02:00
errors.md http: fixed socket.setEncoding fatal error 2020-05-23 21:29:49 +02:00
esm.md esm: doc & validate source values for formats 2020-05-21 12:59:50 +08:00
events.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
fs.md doc: add fs.open() multiple constants example 2020-05-20 00:04:43 +02:00
globals.md doc: use code markup/markdown in headers in globals documentation 2019-12-26 21:39:26 -08:00
http2.md http2: do not modify explicity set date headers 2020-05-20 12:33:50 +02:00
http.md http: added scheduling option to http agent 2020-05-20 11:00:14 +02:00
https.md 2020-04-29, Version 13.14.0 (Current) 2020-04-30 00:24:31 +02:00
index.md doc: add basic embedding example documentation 2020-03-21 10:58:25 +01:00
inspector.md doc,inspector: use code markup/markdown in headers 2019-12-26 21:39:27 -08:00
intl.md
modules.md doc: correct CommonJS self-resolve spec 2020-05-22 18:00:40 -07:00
n-api.md Revert "n-api: detect deadlocks in thread-safe function" 2020-05-23 17:45:42 +02:00
net.md doc: add warning for socket.connect reuse 2020-05-08 18:03:26 +02:00
os.md doc: fix markdown parsing on doc/api/os.md 2020-04-29 03:53:28 +02:00
path.md doc: fixed a grammatical error in path.md 2020-05-23 17:13:28 +02:00
perf_hooks.md doc: clarify about the Node.js-only extensions in perf_hooks 2020-05-19 22:16:10 +08:00
policy.md doc: remove personal pronoun usage in policy.md 2020-03-09 19:47:29 -07:00
process.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
punycode.md doc,punycode: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
querystring.md doc,querystring: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
readline.md doc: fix readline key binding documentation 2020-05-20 17:05:01 +02:00
repl.md repl: add builtinModules 2020-05-23 15:37:02 +02:00
report.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
stream.md doc: add comment about highWaterMark limit 2020-05-19 19:20:51 +02:00
string_decoder.md doc: add support encoding link on string_decoder.md 2020-03-11 17:06:13 +01:00
synopsis.md
timers.md doc,timers: use code markup/markdown in headers 2019-12-26 21:39:32 -08:00
tls.md doc: correct tls.rootCertificates to match implementation 2020-05-23 20:54:08 +02:00
tracing.md
tty.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
url.md doc: fix typo in pathToFileURL example 2020-05-23 18:21:43 +02:00
util.md doc: add util.types.isArrayBufferView() 2020-05-02 10:32:26 +05:30
v8.md doc: clarify that v8.serialize() is not deterministic 2020-01-30 16:35:47 -08:00
vm.md 2020-05-19, Version 14.3.0 (Current) 2020-05-19 14:28:43 -07:00
wasi.md wasi: update start() behavior to match spec 2020-04-28 13:04:43 -04:00
worker_threads.md doc: add warnings about transferring Buffers and ArrayBuffer 2020-05-08 00:59:15 +02:00
zlib.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00