On Saturday, August 9, 2014 8:34:10 AM UTC-7, mscdex wrote: > > Is this because the Buffer passed to `fs.write()` cannot be (re)used until > the callback is executed or does it have to do with something at the OS > level? >
I think because multiple threads would each try to seek at the same time, so you might get something like this: Thread 1 seek to position 10 Thread 2 seek to position 50 Thread 1 write Thread 2 write Oops. On Saturday, August 9, 2014 8:24:44 AM UTC-7, Matt Sergeant wrote: > > Can't you just use a stream multiplexer (AKA "Tee") for this? How does this address the problem in any way? -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/7d782994-15c2-4a5b-9059-38b1c4e1f605%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
