mirror of https://github.com/nodejs/node.git
benchmark: Add resume() in static_http_server
This commit is contained in:
parent
db5ee0b3de
commit
ae6f4b32c4
|
@ -31,6 +31,7 @@ server.listen(port, function() {
|
|||
path: '/',
|
||||
agent: agent
|
||||
}, function(res) {
|
||||
res.resume();
|
||||
res.on('end', function() {
|
||||
if (++responses === n) {
|
||||
server.close();
|
||||
|
|
Loading…
Reference in New Issue