Re: About handling thousands of sockets connections simultaneously
| Newsgroups | gmane.comp.python.twisted.web |
|---|---|
| Message-ID | <20100907125020.2058.1576527155.divmod.xquotient.449@localhost.localdomain> |
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