slaskis/knox — pull request #1 by andykent (2012-03-30 16:44:47+00:00)
Title: Make multipart stream uploads work

These appeared to be totally broken as they were applying backpressure to the write stream too early.

This change now buffers upto 5 upload parts into node at at any one time before applying
backpressure. This gives us 5 concurrent upload parts whilst ensuring
we don't overload node with more than 25mb of data at any point.

This is a bit of a hack job and I'm quite sure the Multipart class can be simplified quite a bit but its fixed my issues for now.