On Wed, Jul 17, 2013 at 4:01 PM, Joran Dirk Greef <[email protected]> wrote: > I have a question regarding how TLS socket write works and am going through > the source now too. > > The documentation details this behavior as: > > "Returns true if the entire data was flushed successfully to the kernel > buffer. Returns false if all or part of the data was queued in user memory. > 'drain' will be emitted when the buffer is again free. The optional callback > parameter will be executed when the data is finally written out - this may > not be immediately." > > If I pass a 1mb-2mb buffer to write(), does a true return code or executed > callback guarantee that I can overwrite parts of that buffer, without > changing any data that was passed to the write?
Yes. -- -- 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.
