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: '/',
|
path: '/',
|
||||||
agent: agent
|
agent: agent
|
||||||
}, function(res) {
|
}, function(res) {
|
||||||
|
res.resume();
|
||||||
res.on('end', function() {
|
res.on('end', function() {
|
||||||
if (++responses === n) {
|
if (++responses === n) {
|
||||||
server.close();
|
server.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user