0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 15:06:33 +01:00
nodejs/doc/api
Robert Nagy f8c069f5b8 stream: increase MAX_HWM
MAX_HWM was added in 9208c89 where the highwatermark was changed to
always increase in steps of highest power of 2 to prevent increasing
hwm excessivly in tiny amounts.

Why a limit was added on the highwatermark is unclear but breaks
existing usage where a larger read size is used. The invariant for
read(n) is that a buffer of size n is always returned. Considering
a maximum ceiling on the buffer size breaks this invariant.

This PR significantly increases the limit to make it less likely to
break the previous invariant and also documents the limit.

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

PR-URL: https://github.com/nodejs/node/pull/29938
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2019-11-11 19:50:40 -08:00
..
addons.md src: deprecate two- and one-argument AtExit() 2019-11-05 23:59:02 +01:00
assert.md
async_hooks.md
buffer.md doc: remove dashes 2019-10-26 08:39:41 -07:00
child_process.md child_process,cluster: allow using V8 serialization API 2019-11-05 23:07:04 +01:00
cli.md module: conditional exports with flagged conditions 2019-11-08 17:26:26 -05:00
cluster.md child_process,cluster: allow using V8 serialization API 2019-11-05 23:07:04 +01:00
console.md
crypto.md 2019-11-05, Version 13.1.0 (Current) 2019-11-05 19:39:20 +01:00
debugger.md doc: remove dashes 2019-10-26 08:39:41 -07:00
deprecations.md doc: remove dashes 2019-10-26 08:39:41 -07:00
dgram.md 2019-11-05, Version 13.1.0 (Current) 2019-11-05 19:39:20 +01:00
dns.md
documentation.md
domain.md
errors.md worker: allow specifying resource limits 2019-11-05 19:57:13 +01:00
esm.md doc: update divergent specifier hazard guidance 2019-11-08 17:36:15 -05:00
events.md doc: remove "it is important to" phrasing 2019-10-26 16:33:24 -07:00
fs.md 2019-11-05, Version 13.1.0 (Current) 2019-11-05 19:39:20 +01:00
globals.md doc: delete "a number of" things in the docs 2019-10-26 11:25:43 -07:00
http2.md doc: explain http2 aborted event callback 2019-11-03 18:52:20 +05:30
http.md 2019-11-05, Version 13.1.0 (Current) 2019-11-05 19:39:20 +01:00
https.md
index.md doc: remove dashes 2019-10-26 08:39:41 -07:00
inspector.md doc: remove dashes 2019-10-26 08:39:41 -07:00
intl.md
modules.md module: conditional exports with flagged conditions 2019-11-08 17:26:26 -05:00
n-api.md doc: remove "it is important to" phrasing 2019-10-26 16:33:24 -07:00
net.md doc: remove dashes 2019-10-26 08:39:41 -07:00
os.md doc: revise os.md 2019-10-26 16:10:12 -07:00
path.md
perf_hooks.md
policy.md doc: remove dashes 2019-10-26 08:39:41 -07:00
process.md child_process,cluster: allow using V8 serialization API 2019-11-05 23:07:04 +01:00
punycode.md
querystring.md
readline.md doc: remove dashes 2019-10-26 08:39:41 -07:00
repl.md doc: remove dashes 2019-10-26 08:39:41 -07:00
report.md doc: remove dashes 2019-10-26 08:39:41 -07:00
stream.md stream: increase MAX_HWM 2019-11-11 19:50:40 -08:00
string_decoder.md
synopsis.md
timers.md
tls.md doc: remove dashes 2019-10-26 08:39:41 -07:00
tracing.md doc: remove dashes 2019-10-26 08:39:41 -07:00
tty.md doc: remove dashes 2019-10-26 08:39:41 -07:00
url.md
util.md doc: delete "a number of" things in the docs 2019-10-26 11:25:43 -07:00
v8.md v8: mark serdes API as stable 2019-11-06 00:09:26 +01:00
vm.md 2019-10-22, Version 13.0.0 (Current) 2019-10-22 17:12:12 +01:00
worker_threads.md worker: allow specifying resource limits 2019-11-05 19:57:13 +01:00
zlib.md