substack/http-raw — pull request #1 by shtylman (2012-12-16 05:48:16+00:00)
Title: add pause and resume support to raw streams

Depending on how your benchmarks go, a perf improvement would be to not do the buffer copy in con.ondata but instead only do that if we know the user wants to pause and we won't be able to deliver the data nextTick.

I actually think the copy is safer since I am not sure what guarantees you have that those buffers are usable after the function call. Maybe asking a core dev on this would be good.