[Twisted-Python] Maximum number of SSL connections to the server

Glyph Lefkowitz glyph at twistedmatrix.com
Mon Jan 13 16:37:19 MST 2014


On Jan 13, 2014, at 6:22 AM, Laurens Van Houtven <_ at lvh.io> wrote:

> On Mon, Jan 13, 2014 at 3:19 PM, <exarkun at twistedmatrix.com> wrote:
> select() has a hard limit that is often 1024.  Make sure you're not using the select()-based reactor (which I think is probably the default on OS X).
> 
> Jean-Paul
> 
> What is the A-grade reactor on OS X? I thought it was cfreactor, but the docs appear to brand it as a GUI reactor (that doesn't mean it can't be better than select, of course); perhaps it's kqueuereactor but I hear kqueue is kind of gimpy on OS X compared to FreeBSD (but I have no idea what that actually entails).

Actually, by default, cfreactor doesn't even support a GUI; you need to specifically install a different main loop (as the docs explain, "install(runner=PyObjCTools.AppHelper.runEventLoop)") in order to integrate with a GUI.  The reason the docs brand it as such is that you cannot have an OS X GUI cooperate with your Twisted main loop using a different reactor.

KQueue's gimpiness is entirely to do with deficiencies in its behavior with regard to weird file descriptor types, mostly PTYs.  (I've seen some people talking about difficulties with pipes, but I've never had an issue with them personally; I don't know what that's about.)  If all you need to do is talk to a lot of sockets, KQueue is just fine.

-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140113/9ce07350/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4124 bytes
Desc: not available
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140113/9ce07350/attachment.bin>


More information about the Twisted-Python mailing list