[Twisted-Python] kqueue reactor / ticket #1918

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Fri Nov 4 13:00:24 EDT 2011

On 04:49 pm, kevin.horn at gmail.com wrote:
>On Fri, Nov 4, 2011 at 9:11 AM, Tobias Oberstein <
>tobias.oberstein at tavendo.de> wrote:
>> > Is there even a kqueue-based Twisted reactor?
>> >
>> > Yes... ish.  More detail here: <
>>Hi Glyph,
>>first, thanks as always!
>>The pykqueue 1.3 and 2.0 referenced in that ticket seem to be no 
>>On the other hand, Python has built-in support for kqueue since Python 
>>in the select module.
>>I have adjusted the Twisted kqreactor to select.kqueue and made a 
>>I have tested that reactor successfully with Autobahn WebSockets on
>>FreeBSD 8.2
>>(running as a VirtualBox x86 VM). When I'm home later, I can check out 
>>Doing the Autobahn tests helped me finding the only non-canonical 
>>Is there any regression/test/stresstest I could run to verify the 
>>actually works?
>>The Autobahn WS tests do quite some stuff, but they do not test
>>concurrency and
>>high connections numbers ..
>This is awesome, BUT...
>...would probably have to be distributed outside of Twisted proper (at
>least for the moment), as Twisted supports versions of Python < 2.6, 
>select.kqueue would not exist.
>(Maybe this is your plan, but I'm just pointing it out.)

It would be fine for Twisted to offer this feature only on Python 2.6 
and newer.


More information about the Twisted-Python mailing list