Since the buffer is passed to the thread pool it needs to be heap allocated. Thanks to Jon Crosby and Tim Caswell for debugging this.
Was sending two packets instead of one for some short messages, and even 3, for short chunked-encoded messages. Also use the more general Encode() function for receiving HTTP bodies. Gives ~6% improvement on "hello world" web server benchmarks.
Removes node.UTF8, node.RAW, node.ASCII enum versions of the encodings. node.fs.read() now supports "raws" encoding.
In Snow Leopard "platform.machine()" returns "i386" while "platform.architecture()" returns ('64bit',''). Using information from both we can determine the proper architecture This reverts commit ea29e13 re-enabling the 64bit build on Macintosh.
Instead of myemitter.emit("event", [arg1, arg2, arg3]); the API is now myemitter.emit("event", arg1, arg2, arg3); This change saves the creation of an extra array object for each event. The implementation is also slightly more simple.
This reverts commit 412b463.
Thanks to Felix Geisendörfer for the initial patch.
Problem appeared in dc39e82.