Browse Source

test: fix pummel/test-net-many-clients.js

client sockets no longer emit 'connect' event inside the
requestListener, update test-net-many-clients to reflect that
v0.10.6-release
Timothy J Fontaine 12 years ago
parent
commit
72c58158f7
  1. 3
      test/pummel/test-net-many-clients.js

3
test/pummel/test-net-many-clients.js

@ -37,13 +37,12 @@ for (var i = 0; i < bytes; i++) {
} }
var server = net.createServer(function(c) { var server = net.createServer(function(c) {
c.on('connect', function() { console.log('connected');
total_connections++; total_connections++;
common.print('#'); common.print('#');
c.write(body); c.write(body);
c.end(); c.end();
}); });
});
function runClient(callback) { function runClient(callback) {
var client = net.createConnection(common.PORT); var client = net.createConnection(common.PORT);

Loading…
Cancel
Save