Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
fs.read and fs.write break oddly when the same cb is used repeatedly #814
This is a weird race condition:
Because src/node_file.cc does this: https://github.com/joyent/node/blob/master/src/node_file.cc#L716-718 there are going to be some cases where
Solution: instead of passing the callback handle as ev_data, pass a struct that looks like:
and then ev_ref and ev_unref the buffer if not null.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
node-dev discussion https://groups.google.com/d/topic/nodejs-dev/8Np1n8KDEmU/discussion