stream: Start out in sync=true state
authorisaacs <i@izs.me>
Sat, 23 Feb 2013 00:45:22 +0000 (16:45 -0800)
committerisaacs <i@izs.me>
Mon, 25 Feb 2013 15:38:10 +0000 (07:38 -0800)
commite03bc472f0b4a50ede3a0e0be7de9e5d12bb85a9
tree72fa17b05d44aaf74835a5fe6bb101bd8205b82a
parent4231dab39f8d3769196fefede15e048f3ca09300
stream: Start out in sync=true state

The Readable and Writable classes will nextTick certain things
if in sync mode.  The sync flag gets unset after a call to _read
or _write.  However, most of these behaviors should also be
deferred until nextTick if no reads have been made (for example,
the automatic '_read up to hwm' behavior on Readable.push(chunk))

Set the sync flag to true in the constructor, so that it will not
trigger an immediate 'readable' event, call to _read, before the
user has had a chance to set a _read method implementation.
lib/_stream_readable.js
lib/_stream_transform.js
lib/_stream_writable.js