Yes, it happens.  In fact, it can happen quite often when you'er doing
a lot of large-ish reads and writes in parallel, and if you don't
account for it, then it does indeed suck.

That's why we have the fs.readFile and fs.writeFile functions for the
use case where you can store the entire file in memory, and the
fs.ReadStream and fs.WriteStream classes for the use cases where you
don't.

On Wed, May 23, 2012 at 4:46 AM, Bert Belder <bertbel...@gmail.com> wrote:
>> > That is, can these functions get interrupted and not fill the entire 
>> > buffer,
>> > even if there are bytes available to fill the entire buffer?
>>
>> Yes, that's certainly possible.
>
> But does it actually happen? If so, that sucks.
>
> --
> 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