test: use the new net.listen(backlog=x) API

pull/24503/head
Ben Noordhuis 2012-04-18 21:55:36 +02:00
parent 12f77440ef
commit c56d1559fc
2 changed files with 2 additions and 8 deletions

View File

@ -16,10 +16,7 @@ process.on('message', function(m, serverHandle) {
process.send({ childConnections: connections }); process.send({ childConnections: connections });
}); });
// TODO need better API for this. server.listen(serverHandle, /* backlog */ 9, function() {
server._backlog = 9;
server.listen(serverHandle, function() {
process.send({ gotHandle: true }); process.send({ gotHandle: true });
}); });
}); });

View File

@ -36,10 +36,7 @@ var server = new net.Server(function(c) {
c.destroy(); c.destroy();
}); });
// TODO need better API for this. server.listen(common.PORT, /* backlog */ 9, function() {
server._backlog = 9;
server.listen(common.PORT, function() {
console.log('PARENT send child server handle'); console.log('PARENT send child server handle');
n.send({ hello: 'world' }, server._handle); n.send({ hello: 'world' }, server._handle);
}); });