According to POSIX specification, if you write less than the size of 
PIPE_BUF, this operation shall be atomic.

The default writableStream.highwatermark in nodejs is 16 kilobyte. 
writableStream.write will return false when the total size of the being 
flushed data is greater this value.

Let say the PIPE_BUF of my OS is 512 byte which is much smaller than 
writableStream.highWatermark. Does it mean the write operation of nodejs 
must not be atomic?

-- 
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/b300e433-2ba8-4df6-9757-d531d55de469%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to