mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
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
Block a user