What you mean by "pause" is not what node meant as "pause" in the past. In the 
past, pause meant "send a signal to the input stream to stop sending me data", 
that did not insure that data that was enroute wasn't still going to be emitted.

>From a high level, your vision of "pause" makes a lot more sense, especially 
>to people that aren't hardcore network geeks like half of the people who work 
>on core :), and that's why there is no resistance whatsoever to fixing core to 
>be pause(maxSize) BUT this is a semantic change and is considered a *feature* 
>and will not be backported, nor would we accept the change a bugfix release 
>because there may be some hidden potential for bugs that assume the old 
>behavior.

-Mikeal

On Feb 7, 2012, at February 7, 20126:09 AM, Bert Belder wrote:

> On Feb 7, 7:47 am, Mikeal Rogers <mikeal.rog...@gmail.com> wrote:
>> This is not a bugfix, IMO, it's a feature. A feature we all want, a feature 
>> that fixes something newcomers trip on often, but previous released 
>> *intended* for the behavior to be the way it was and we have now changed it 
>> because this new way is better.
>> 
>> It's a feature, it won't be backported.
> 
> I would like to *guarantee* that pause() pauses immediately in node
> 0.8. Most of the time it pauses immediately anyway, and it's a huge
> PITA dealing with the remaining edge cases where a data event might
> happen after a pause() call. If people really like the old situation
> we could make the old behavior optional, e.g.
> `stream.pause(allowData=false)`.
> 
> -- 
> 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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> 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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to