http: provide backpressure for pipeline flood
authorisaacs <i@izs.me>
Thu, 10 Oct 2013 22:00:05 +0000 (15:00 -0700)
committerisaacs <i@izs.me>
Wed, 16 Oct 2013 18:01:33 +0000 (11:01 -0700)
commit085dd30e93da67362f044ad1b3b6b2d997064692
tree0eac49c21335d8bb399256582b9100bbd6c6a0d5
parentab037455094c9e3b9922ae2a380911b2b41ba7ce
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.

Fix GH-6214
lib/_http_common.js
lib/_http_incoming.js
lib/_http_server.js
test/simple/test-http-pipeline-flood.js [new file with mode: 0644]