<div>Hi.</div>
<div>I'm twisted beginner. and&nbsp;My english is not good. ^^;;</div>
<div>&nbsp;</div>
<div>I have some troubles using Twisted.</div>
<div>&nbsp;</div>
<div>I make a web server with Twisted.</div>
<div>&nbsp;</div>
<div>I'd like to test my webserver&nbsp;performance. </div>
<div>&nbsp;</div>
<div>So Using &quot;httperf&quot;, I test my webserver.</div>
<div>&nbsp;</div>
<div>But <strong>result in</strong>,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; File &quot;/usr/local/lib/python2.3/site-packages/twisted/python/log.py&quot;, line 52, in callWithContext</div>
<div>
<p>&nbsp;&nbsp;&nbsp;&nbsp; File &quot;/usr/local/lib/python2.3/site-packages/twisted/python/context.py&quot;, line 64, in callWithContext</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; File &quot;/usr/local/lib/python2.3/site-packages/twisted/python/context.py&quot;, line 43, in callWithContext</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; File &quot;/usr/local/lib/python2.3/site-packages/twisted/internet/default.py&quot;, line 535, in _doReadOrWrite</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; --- &lt;exception caught here&gt; ---<br>&nbsp;&nbsp;&nbsp;&nbsp; File &quot;/usr/local/lib/python2.3/site-packages/twisted/internet/tcp.py&quot;, line 625, in doRead</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; File &quot;/usr/local/lib/python2.3/socket.py&quot;, line 167, in accept</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; socket.error: (24, 'Too many open files')</p>
<p>&nbsp;</p>
<p>I think the reason is <strong>file open limit per one process(maybe 1024).</strong></p>
<p>how can I solve this problem?</p>
<p>I'd like to</p>
<p>If Process <strong>can not open file</strong>, that request make wait-status<strong>(not allow socket accept).</strong></p>
<p>and when Process can open file, handle the request.</p>
<p>&nbsp;</p></div>