Skip to content

Commit f1f4b4c

Browse files
bnoordhuisFishrock123
authored andcommitted
stream: fix off-by-factor-16 error in comment
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>
1 parent cb30414 commit f1f4b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_stream_readable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Readable.prototype.setEncoding = function(enc) {
190190
return this;
191191
};
192192

193-
// Don't raise the hwm > 128MB
193+
// Don't raise the hwm > 8MB
194194
const MAX_HWM = 0x800000;
195195
function roundUpToNextPowerOf2(n) {
196196
if (n >= MAX_HWM) {

0 commit comments

Comments
 (0)