Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
Trott committed Jan 24, 2016
commit fd3ca84f92da0ff010038efffecfd1fb039720b9
11 changes: 4 additions & 7 deletions test/parallel/test-http-pipeline-flood.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function parent() {
server.close();
}));

server.setTimeout(common.platformTimeout(10), common.mustCall(function() {
server.setTimeout(10, common.mustCall(function() {
child.kill();
}));
});
Expand All @@ -82,13 +82,10 @@ function child() {

req = new Array(10241).join(req);

conn.on('connect', function() {
// Terminate child after flooding.
setTimeout(function() { conn.destroy(); }, 500);
write();
});
conn.on('connect', write);

conn.on('drain', write);
// `drain` should fire once and only once
conn.on('drain', common.mustCall(write));

function write() {
while (false !== conn.write(req, 'ascii'));
Expand Down