Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Oct 19, 2021
1 parent 8718a44 commit 7af13b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/fs/streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function ReadStream(path, options) {
// A little bit bigger buffer and water marks by default
options = copyObject(getOptions(options, {}));
if (options.highWaterMark === undefined)
options.highWaterMark = 64 * 1024;
options.highWaterMark = Math.max(Buffer.poolSize, 64 * 1024);

if (options.autoDestroy === undefined) {
options.autoDestroy = false;
Expand Down

0 comments on commit 7af13b5

Please sign in to comment.