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: #2479
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information
bnoordhuis authored and Fishrock123 committed Aug 24, 2015
1 parent cb30414 commit f1f4b4c
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 f1f4b4c

Please sign in to comment.