From 62dd04027b67f02856713e080651bb24b38206f8 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 12 Nov 2012 23:31:40 -0800 Subject: [PATCH] streams2: Set Readable lwm to 0 by default --- lib/_stream_readable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index b1dd0cb67b4..56a3e9dac38 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -46,7 +46,7 @@ function ReadableState(options, stream) { // the minimum number of bytes to buffer before emitting 'readable' // default to pushing everything out as fast as possible. this.lowWaterMark = options.hasOwnProperty('lowWaterMark') ? - options.lowWaterMark : 1024; + options.lowWaterMark : 0; // cast to ints. assert(typeof this.bufferSize === 'number');