If you check the current documentation:

"Issues an advisory signal to the underlying communication layer,
requesting that no further data be sent until resume() is called.

Note that, due to the advisory nature, certain streams will not be
paused immediately, and so 'data' events may be emitted for some
indeterminate period of time even after pause() is called. You may
wish to buffer such 'data' events."

http://nodejs.org/api/stream.html#stream_stream_pause

so, pause does not buffer. possibly changing to that behaviour will be
explored in 0.9

however, it is pretty simple to pipe to a buffering stream and then to
where every you want it, (i frequently use quite long chains of
streams).

if you copy the properties you are interested in (headers,
httpVersion, etc) to the next stream and most likely it will just
work.

cheers, Dominic

On Wed, Jul 4, 2012 at 10:41 AM, mscdex <[email protected]> wrote:
> On Jul 3, 5:49 pm, Domenic Denicola <[email protected]>
> wrote:
>> Thanks very much for pointing this out; I didn't know we would get this in
>> the 0.8 upgrade. Do you have any more details on the remaining piping
>> issue? Marco, would you recommend calling this new `pause` over using a
>> buffered stream?
>
> I can't find the link I saw originally, but there's a comment [1] made
> by mikeal awhile back that mentions it. You might try searching the
> node gh issues for 'pause' or something like that.
>
> The implementation for the new pause fix internally does buffering for
> any 'data' events that happen to make it in after the stream is
> paused. When you resume, it replays these events in order before
> emitting any new 'data' events.
>
> [1] 
> https://github.com/joyent/node/commit/e6b6075024e9f1330575b10d7e6552e1ea6dad56#commitcomment-939063
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to