mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
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
This commit is contained in:
@@ -37,12 +37,11 @@ for (var i = 0; i < bytes; i++) {
|
||||
}
|
||||
|
||||
var server = net.createServer(function(c) {
|
||||
c.on('connect', function() {
|
||||
total_connections++;
|
||||
common.print('#');
|
||||
c.write(body);
|
||||
c.end();
|
||||
});
|
||||
console.log('connected');
|
||||
total_connections++;
|
||||
common.print('#');
|
||||
c.write(body);
|
||||
c.end();
|
||||
});
|
||||
|
||||
function runClient(callback) {
|
||||
|
||||
Reference in New Issue
Block a user