projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d251e6
)
stream: fix off-by-factor-16 error in comment
author
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 20 Aug 2015 20:19:46 +0000
(22:19 +0200)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Mon, 24 Aug 2015 18:21:22 +0000
(20:21 +0200)
The high watermark is capped at 8 MB, not 128 MB like the comment
in lib/_stream_readable.js said.
PR-URL: https://github.com/nodejs/node/pull/2479
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
lib/_stream_readable.js
patch
|
blob
|
history
diff --git
a/lib/_stream_readable.js
b/lib/_stream_readable.js
index
1106998
..
644c4ff
100644
(file)
--- a/
lib/_stream_readable.js
+++ b/
lib/_stream_readable.js
@@
-190,7
+190,7
@@
Readable.prototype.setEncoding = function(enc) {
return this;
};
-// Don't raise the hwm >
12
8MB
+// Don't raise the hwm > 8MB
const MAX_HWM = 0x800000;
function roundUpToNextPowerOf2(n) {
if (n >= MAX_HWM) {