http: provide backpressure for pipeline flood
authorisaacs <i@izs.me>
Wed, 16 Oct 2013 19:57:46 +0000 (12:57 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Thu, 17 Oct 2013 00:12:34 +0000 (17:12 -0700)
commitb97c28f59ee898a81f0df988c249359c9b42701d
treed99a4529a1189da606d8421448165cf2701a19e9
parentf051b8919fec8efd8ef050f580cfcabea3d2534c
http: provide backpressure for pipeline flood

If a client sends a lot more pipelined requests than we can handle, then
we need to provide backpressure so that the client knows to back off.
Do this by pausing both the stream and the parser itself when the
responses are not being read by the downstream client.

Backport of 085dd30
lib/http.js
test/simple/test-http-pipeline-flood.js [new file with mode: 0644]