streams2: Set Readable lwm to 0 by default

pull/24504/head
isaacs 2012-11-12 23:31:40 -08:00
parent f20fd22abd
commit 62dd04027b
1 changed files with 1 additions and 1 deletions

View File

@ -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');