On 09:25 am, [email protected] wrote:
>i use twisted as TCP server, when handling thousands of sockets
>connections
>simultaneously, i have found that the maximum TCP connections limited
>about
>500. What's the matter?
Try switching to a different reactor. For example, the select reactor
is limited to FD_SETSIZE open sockets. This is usually around 1000, but
could be 500 on some systems. Poll reactor is limited to the "open
files" rlimit which can be raised by superusers. IOCP reactor has no
arbitrary limits, I think.
http://twistedmatrix.com/documents/current/core/howto/choosing-
reactor.html
Jean-Paul
_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web