title: SiegeTest:socket error unable to connect
body: <p>Really need help to figure out what is going wrong.</p>
  
  <p>Application Background: It is a <code>nodejs</code> with <code>socket.io</code> application.</p>
  
  <p>I am testing my site load using <code>siege windows 3.0.5</code> tool.
  70 concurrent users with 10 seconds</p>
  
  <pre><code>siege -c70 -t10s http://localhost:8082
  </code></pre>
  
  <p>and getting below error messages.</p>
  
  <blockquote>
    <p>[error] socket: unable to connect sock.c:230: Address family not supported by protocol [error] socket: unable to connect sock.c:230: No such file or   directory [error] socket: unable to connect sock.c:230: No such file or  directory [error] socket: unable to connect sock.c:230: No such file or  directory [error] socket: unable to connect sock.c:230: No such file or  directory [error] socket: unable to connect sock.c:230: No such file or  directory [error] socket: unable to connect sock.c:230: No such file or  directory HTTP/1.1 200   8.96 secs:    3415 bytes ==> GET  / HTTP/1.1 200   8.96 secs:    3415 bytes ==> GET  / HTTP/1.1 200   8.96 secs:    3415 bytes ==> GET  / HTTP/1.1 200   8.96 secs:    3415 bytes ==> GET  / HTTP/1.1 200   8.96 secs:    3415 bytes ==> GET  / HTTP/1.1 200   8.98 secs:    3415 bytes ==> GET  / HTTP/1.1 200   8.98 secs:    3415 bytes ==> GET  / HTTP/1.1 200   8.98 secs:    3415 bytes ==> GET  /</p>
  </blockquote>
  
  <p>it works fine, if I use</p>
  
  <pre><code>siege -c60 -t50s http://localhost:8082
  </code></pre>
  
  <p>Does this means I can only serve 60 concurrent users. What are above errors messages and how to resolve them.</p>
  
  <p>I am already using connectionPool concept for mysql module and releasing connection after using it.</p>
  
  <pre><code>db.getConnection(function(err,connection)
      {
          if(!err)
          {        
              connection.query(query,function(err,rows){
                  connection.release();
                  if(err) {
              throw err;
                  } else {
                      callback("null",{rows : rows,tablename : ticker});
                  }
              });
          }
      });
  </code></pre>