samcday/node-fastcgi-stream — pull request #1 by vickenty (2012-08-02 12:08:02+00:00)
Title: Fix for buffer corruption.

When sending lots of data, stream.write() may not write the data immediately, but schedule it for later. The scheduled write request will store a pointer to the buffer passed to write() method, so subsequent calls to writeRecord() will corrupt the data for all pending write requests.

Allocating a new buffer for each write request avoids this problem.