<div>&nbsp;</div><div>&nbsp;def main():<br>&nbsp;&nbsp;&nbsp; port=8008<br>&nbsp;&nbsp;&nbsp; reactor.listenTCP(port,policyServerFactory())<br>&nbsp;&nbsp;&nbsp; reactor.run()<br><br>$ telnet localhost 8008 <br>Trying 127.0.0.1...<br>Connected to policy.126.com (127.0.0.1).<br>Escape character is '^]'.<br><br>--------------<br>Client will not close the connect unit it disconnects itself. But the server can't control the connect. In some critical environment, the server has to maintain a lot of connect which maybe is idle.<br><br>So I want to the server initiative disconnect the idle connection reache timeout.<br><br></div><div>&nbsp;</div><div>&nbsp;</div><div></div><br><pre>在2008-06-23 19:33:35,"Jean-Paul Calderone" &lt;exarkun@divmod.com&gt; 写道:
&gt;On Mon, 23 Jun 2008 11:37:33 +0800 (CST), uupandemo <uupandemo wrote:="" a="" client="" to="" the="" server="" socket="" server="" can="" close="" the="" connection="" while="" the="" idle="" time="" exceed="" the="" timeout.="" to="" solve="" it="" a="" client="" does="" what="" Why="" can="" the="" server="" close="" the="" connection="" Can="" clarify="" the="" question="" a="" bit="" Perhaps="" you="" can="" include="" a="" minimal="" runnable="" that="" demonstrates="" the="" problem.="" mailing="" list="" twistedmatrix.com="" cgi-bin="" mailman="" listinfo="" twisted-python=""></uupandemo></pre><br><!-- footer --><br>
<hr>
<table width="100%%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50" height="50"><img src="http://proimg.163.com/channel01/4251_10050_0409.jpg" alt="LOGO" width="100" height="50"></td>
    <td style="padding:5px;"><a style="font-size:12px;line-height:15px; color:black; text-decoration:none;" href="http://popme.163.com/link/004251_0410_829.html">快来用音乐为奥运加油</a><br /><font style="font-size:12px;line-height:20px;"></font><a style="font-size:12px;line-height:15px; color:blue; text-decoration:underline;" href="http://popme.163.com/link/004251_0410_829.html">得奥运会、演唱会门票</a>
  </tr>
</table>