On Wed, Mar 21, 2012 at 10:56, billywhizz <[email protected]> wrote:
> could anyone enlighten me on why writing to stdout and stderr now blocks?

The two main reasons (IIRC):

1. The asynchronous nature of stdout confused a lot of people, esp.
the fact that Node could exit before all console.log statements have
been printed.
2. Printing faster than stdout could handle would queue up the output
in a backlog, leading to excessive memory usage.

On a side note, stderr has always been blocking.

-- 
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