Browse Source

streams2: Set Readable lwm to 0 by default

v0.9.4-release
isaacs 13 years ago
parent
commit
62dd04027b
  1. 2
      lib/_stream_readable.js

2
lib/_stream_readable.js

@ -46,7 +46,7 @@ function ReadableState(options, stream) {
// the minimum number of bytes to buffer before emitting 'readable' // the minimum number of bytes to buffer before emitting 'readable'
// default to pushing everything out as fast as possible. // default to pushing everything out as fast as possible.
this.lowWaterMark = options.hasOwnProperty('lowWaterMark') ? this.lowWaterMark = options.hasOwnProperty('lowWaterMark') ?
options.lowWaterMark : 1024; options.lowWaterMark : 0;
// cast to ints. // cast to ints.
assert(typeof this.bufferSize === 'number'); assert(typeof this.bufferSize === 'number');

Loading…
Cancel
Save