Skip to content

Commit

Permalink
stream: fix off-by-factor-16 error in comment
Browse files Browse the repository at this point in the history
The high watermark is capped at 8 MB, not 128 MB like the comment
in lib/_stream_readable.js said.

PR-URL: nodejs#2479
Reviewed-By: Chris Dickinson <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
  • Loading branch information
bnoordhuis committed Aug 24, 2015
1 parent 2d251e6 commit 1a3f4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_stream_readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Readable.prototype.setEncoding = function(enc) {
return this;
};

// Don't raise the hwm > 128MB
// Don't raise the hwm > 8MB
const MAX_HWM = 0x800000;
function roundUpToNextPowerOf2(n) {
if (n >= MAX_HWM) {
Expand Down

0 comments on commit 1a3f4a8

Please sign in to comment.