title: how to start a huge amount of tcp client connections
body: <p>　　　　　　　　　　　　　　　　　　　　　　　　　Happy Spring Festival - the Chinese New Year.</p>
  
  <p>I'm working on server programming, and stucked in 10055 Error.</p>
  
  <p>I have a TCP client application, which can simulate a huge amount of clients.</p>
  
  <p>Hearing that 65534 is the maximum value of tcp client connections of one computer,
  I use Asio to implement simulation client which start 50000 asynchronous tcp connects.</p>
  
  <p>pseudocode:</p>
  
  <pre><code>for (int i=0:  i&lt;50000 ; ++i)
      asyn_connect(...);
  </code></pre>
  
  <p>Development Environment is:</p>
  
  <p>windows xp , x86 , 4G memory, 4 core CPU</p>
  
  <p>HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\MaxUserPort=65000</p>
  
  <p>The result is:</p>
  
  <p>when connects come up to 17000 , 10055 Error occur.</p>
  
  <p>I tried another computer ,the Error occur at 30000 connections, better but not enough good.
  ( the server app runs at another computer, also using Asio  ).</p>
  
  <p>The question is:
  How to successfully start 50000 client connections at one computer?</p>