[Twisted-Python] How can I change max simultaneously connection in twisted

Thomas Hervé therve at free.fr
Tue May 5 08:42:16 EDT 2009

Le mardi 05 mai 2009 à 19:33 +0800, 孙绍轩 a écrit :
> Hello all
> I just wrote a small code to holding many http requests until server's
> status change. Everything is fine but when simultaneously connection up
> to 1k+, the server code didn't response to new connection. I've set
> ulimit -n's value to 65535 and the code using epollreactor mode. Are
> there have some limitations? How can I configure to support more
> connections?
> BTW: I use Python 2.4.3 on CentOS 5 64-bit. follow is the code, Thanks
> for you help!

This is known bug of Python 2.4.3. As far as I know it's only present in
this version (not 2.4.2 or 2.4.4, or any 2.5). Reported here:


More information about the Twisted-Python mailing list