title: RangeError: Maximum call stack size exceeded (socket.io + nodejs)
body: <p>I'm trying to connect to a socket.io server, and see if i can initiate connections, basically benchmarking. Here's the code snippet.</p>
  
  <pre><code>function initiate() {
  
      var client = io.connect('http://&lt;ip&gt;:&lt;port&gt;', { 'force new connection' : true});
      client.on('connect', function () {
       client.emit('topic', ('Connection '));
       client.emit('start-typing', 'started typing');
       client.emit('topic-message', 'Topic message');
       // initiate();
      });
  
    client.on('connect_error', function (err) {
     console.log('connect error');
    });
  
    client.on('error', function (err) {
     client.emit('error', err);
    });
  
  
  
  setTimeout(function () {
   // process.nextTick(initiate);
   initiate();
   });
  }
  
  initiate();
  </code></pre>
  
  <p>Now the problem is, after around 3000 connections, it just breaks with call stack size exceeded error. I tried process.nextTick(), also i did put the the socket code inside setTimeout, but it didn't help. I'm trying to hit, at least 1 million connections. </p>