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

孙绍轩 sunshaoxuan at cdeledu.com
Tue May 5 21:56:01 EDT 2009

Thomas Hervé 写道:
> 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:
> http://bugs.python.org/issue1494314.
Got it!, Thinks for your help.


孙绍轩 Yorgo Sun
China Distance Education Holdings Limited
18th Floor, XueYuan International Tower, No.1 ZhiChun Road, HaiDian District, Beijing, China 100083
Phone: +8610-8231-9999 Ext 708
This message is intended only for the use of the individual or entity to whom it is addressed and contains information that is privileged and confidential. If you, the reader of this message, are not the intended recipient, you should not disseminate, distribute or copy this communication. If you have received this communication in error, please notify us immediately by return email and delete the original message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20090506/4b1fb29e/attachment.htm 

More information about the Twisted-Python mailing list