[Twisted-web] socket.error: (24, 'Too many open files')

이영남 lupin2000 at gmail.com
Tue Dec 13 23:20:12 MST 2005

I'm twisted beginner. and My english is not good. ^^;;

I have some troubles using Twisted.

I make a web server with Twisted.

I'd like to test my webserver performance.

So Using "httperf", I test my webserver.

But *result in*,
     File "/usr/local/lib/python2.3/site-packages/twisted/python/log.py",
line 52, in callWithContext

"/usr/local/lib/python2.3/site-packages/twisted/python/context.py", line 64,
in callWithContext

"/usr/local/lib/python2.3/site-packages/twisted/python/context.py", line 43,
in callWithContext

"/usr/local/lib/python2.3/site-packages/twisted/internet/default.py", line
535, in _doReadOrWrite

     --- <exception caught here> ---
     File "/usr/local/lib/python2.3/site-packages/twisted/internet/tcp.py",
line 625, in doRead

     File "/usr/local/lib/python2.3/socket.py", line 167, in accept

     socket.error: (24, 'Too many open files')

I think the reason is *file open limit per one process(maybe 1024).*

how can I solve this problem?

I'd like to

If Process *can not open file*, that request make wait-status*(not allow
socket accept).*

and when Process can open file, handle the request.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20051214/41119599/attachment.htm

More information about the Twisted-web mailing list