The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / test / simple / test-stream2-transform.js @ 6f043940

History | View | Annotate | Download (11 KB)

# Date Author Comment
c3aae9cf 03/21/2013 08:49 PM Gil Pedersen

stream: Fix stall in Transform under very specific conditions

The stall is exposed in the test, though the test itself asserts before
it stalls.

The test is constructed to replicate the stalling state of a complex
Passthrough usecase since I was not able to reliable trigger the stall....

08f5db11 03/08/2013 09:56 PM isaacs

test: Make stream2-transform less timing-dependent

312289b7 03/05/2013 05:27 PM isaacs

stream: Use class for write buffer entries

426b4c62 03/05/2013 05:27 PM isaacs

stream: _write takes an encoding argument

This vastly reduces the overhead of decodeStrings:false streams,
such as net and http.

cd68d86c 03/05/2013 05:27 PM isaacs

stream: Remove output function from _transform

Just use stream.push(outputChunk) instead.

3b2e9d26 02/21/2013 06:23 PM isaacs

stream: remove lowWaterMark feature

It seems like a good idea on the face of it, but lowWaterMarks are
actually not useful, and in practice should always be set to zero.

It would be worthwhile for writers if we actually did some kind of
writev() type of thing, but actually this just delays calling write()...

e26622bd 01/28/2013 11:40 AM isaacs

stream: Correct Transform class backpressure

The refactor in b43e544140ccf68580c02e71c56d19b82e1e1d32 to use
stream.push() in Transform inadvertently caused it to immediately
consume all the written data, regardless of whether or not the readable
side was being consumed....

6e05faa3 01/24/2013 01:12 PM isaacs

test: Add transform objectMode test

444bbd4f 01/24/2013 10:49 AM Raynos

streams: Support objects other than Buffers

We detect for non-string and non-buffer values in onread and
turn the stream into an "objectMode" stream.

If we are in "objectMode" mode then howMuchToRead will
always return 1, state.length will always have 1 appended...

b43e5441 01/10/2013 04:49 PM isaacs

stream: Use push() for Transform._output()

This also slightly changes the semantics, in that a 'readable'
event may be triggered by the first write() call, even if a
user has not yet called read().

This happens because the Transform _write() handler is calling...

c2f62d49 12/13/2012 08:00 PM isaacs

test: Update stream2 transform for corrected behavior

9b1b8549 12/13/2012 08:00 PM isaacs

streams2: Tests of new interfaces