Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: use the new net.listen(backlog=x) API
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Apr 18, 2012
1 parent 12f7744 commit c56d155
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions test/fixtures/fork2.js
Expand Up @@ -16,10 +16,7 @@ process.on('message', function(m, serverHandle) {
process.send({ childConnections: connections });
});

// TODO need better API for this.
server._backlog = 9;

server.listen(serverHandle, function() {
server.listen(serverHandle, /* backlog */ 9, function() {
process.send({ gotHandle: true });
});
});
Expand Down
5 changes: 1 addition & 4 deletions test/simple/test-child-process-fork2.js
Expand Up @@ -36,10 +36,7 @@ var server = new net.Server(function(c) {
c.destroy();
});

// TODO need better API for this.
server._backlog = 9;

server.listen(common.PORT, function() {
server.listen(common.PORT, /* backlog */ 9, function() {
console.log('PARENT send child server handle');
n.send({ hello: 'world' }, server._handle);
});
Expand Down

0 comments on commit c56d155

Please sign in to comment.