[Twisted-Python] twisted run out of file descriptors

Alec Matusis matusis at matusis.com
Tue Oct 26 23:01:15 EDT 2004

I changed reactor to poll(), and it has sucessfully surpassed 1024 file
descriptors limit, while the load on the machine did not increase
significantly from select() based reactor.

Thanks everybody for the help

Alec Matusis

-----Original Message-----
From: twisted-python-bounces at twistedmatrix.com
[mailto:twisted-python-bounces at twistedmatrix.com]On Behalf Of Glyph
Sent: Tuesday, October 26, 2004 8:31 AM
To: Twisted general discussion
Subject: RE: [Twisted-Python] twisted run out of file descriptors

On Tue, 2004-10-26 at 01:35 -0700, Alec Matusis wrote:
> I thought it would be faster with select() rather than poll() - lower load
> on the machine?

Sounds like you might be confused - if someone had told you that
select() is faster than *polling*, that would be accurate - the
terminology is confusing because "polling" means "repeatedly checking
for input in a busy-loop".  In this context, "polling" is actually the
opposite of "calling poll()".

poll() is simply a better version of select().  The only reason it is
not the default reactor is that there are some obscure places where
select() exists and it does not.  I am not sure if this is even relevant
any more, since I don't know if any such place can build recent versions
of Python.

Twisted-Python mailing list
Twisted-Python at twistedmatrix.com

More information about the Twisted-Python mailing list