[Twisted-Python] too many file descriptors in select
johnaherne at rocs.co.uk
Tue Mar 3 16:43:00 EST 2009
Thanks for the information. Looks pretty conclusive.
Thinking about it, I reckon I must be leaking connections. So I'll go and
On Tue, Mar 3, 2009 at 5:24 PM, Itamar Shtull-Trauring
<itamar at itamarst.org>wrote:
> John Aherne wrote:
>> I have started to get this message coming up on a fairly regular basis
>> I have an application that is very simple and has run by and large without
>> problem for about 7 months. But over the pas 4 - 6 weeks has started to
>> produce this error 'too many file descriptors in select'. The application
>> basically falls over at this point, since it can't service any more
> Assuming that you've made sure you aren't leaking any connections, you are
> still faced with the problem of that the select module on Windows is limited
> to 512 file descriptors. Your options:
> 1. Switch to Linux, where you can use other reactors with a much higher
> limit, e.g. epoll.
> 2. Use the IOCP reactor on Windows, which isn't as well tested and is
> missing some features, in particular SSL support.
> 3. Recompile the select module on Windows with a higher limit; basically
> it's some C constant you redefine, it's probably right at the top of the
> file. You just get the Python tarball, and rebuild the appropriate module
> (or everything and just extract the appropriate PYD).
> -Itamar, still living the voice-recognition life
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python