On Fri, Jul 19, 2013 at 1:22 PM, Joran Greef <[email protected]> wrote:
> Thanks Ben, does a return code of true and the callback being called mean
> exactly the same thing? Do both give the same guarantee?
>
> The reason I ask is because I am pre-allocating a buffer for a websocket
> server, and this is overwriting the buffer as soon as write returns true or
> the callback is fired. I noticed that for large writes it's overwriting data
> before it gets to the client.
>
> Joran Greef
>
> RONOMON

Yes, they mean the same thing / come with the same guarantees - that
the contents of the buffer has been handed off to the operating
system.

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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to