<div>thank you for your advice. </div>
<div>i have chose the epoll reactor,and the requirement of my project is to be able to support 60,000 TCP-connects <font style="BACKGROUND-COLOR: #e6ecf9">simultaneously. it seems that just choosing different reactor couldn&#39;t solve the problem, can you give some more suggestions? </font><br>
<br></div>
<div class="gmail_quote">On Tue, Sep 7, 2010 at 8:50 PM, <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im"><br><br><br>On 09:25 am, <a href="mailto:hustxnwsg@gmail.com">hustxnwsg@gmail.com</a> wrote:<br>&gt;i use twisted as TCP server, when handling  thousands of sockets<br>&gt;connections<br>&gt;simultaneously, i have found that the maximum TCP connections limited<br>
&gt;about<br>&gt;500. What&#39;s the matter?<br><br></div>Try switching to a different reactor.  For example, the select reactor<br>is limited to FD_SETSIZE open sockets.  This is usually around 1000, but<br>could be 500 on some systems.  Poll reactor is limited to the &quot;open<br>
files&quot; rlimit which can be raised by superusers.  IOCP reactor has no<br>arbitrary limits, I think.<br><br><a href="http://twistedmatrix.com/documents/current/core/howto/choosing-" target="_blank">http://twistedmatrix.com/documents/current/core/howto/choosing-</a><br>
reactor.html<br><br>Jean-Paul<br><br>_______________________________________________<br>Twisted-web mailing list<br><a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Services Computing Technology and System Lab &amp;&amp; Cluster and Grid Computing Lab.<br>School of Computer Science and Technology,<br>Huazhong University of Science and Technology,<br>
Wuhan,430074,China.<br>