<div class="gmail_quote">On Fri, Nov 4, 2011 at 9:11 AM, Tobias Oberstein <span dir="ltr">&lt;<a href="mailto:tobias.oberstein@tavendo.de">tobias.oberstein@tavendo.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
&gt; Is there even a kqueue-based Twisted reactor?<br>
&gt;<br>
&gt; Yes... ish.  More detail here: &lt;<a href="http://twistedmatrix.com/trac/ticket/1918" target="_blank">http://twistedmatrix.com/trac/ticket/1918</a>&gt;.<br>
<br>
Hi Glyph,<br>
<br>
first, thanks as always!<br>
<br>
The pykqueue 1.3 and 2.0 referenced in that ticket seem to be no longer<br>
maintained.<br>
<br>
On the other hand, Python has built-in support for kqueue since Python 2.6<br>
in the select module.<br>
<br>
I have adjusted the Twisted kqreactor to select.kqueue and made a package:<br>
<br>
<a href="https://github.com/oberstet/txkqreactor" target="_blank">https://github.com/oberstet/txkqreactor</a><br>
<br>
I have tested that reactor successfully with Autobahn WebSockets on FreeBSD 8.2<br>
(running as a VirtualBox x86 VM). When I&#39;m home later, I can check out Mac.<br>
<br>
Doing the Autobahn tests helped me finding the only non-canonical change required<br>
<br>
<a href="https://github.com/oberstet/txkqreactor/commit/27302b4f643cd3967289ff11d811309a0b05f630" target="_blank">https://github.com/oberstet/txkqreactor/commit/27302b4f643cd3967289ff11d811309a0b05f630</a><br>
<br>
Is there any regression/test/stresstest I could run to verify the stuff actually works?<br>
<br>
The Autobahn WS tests do quite some stuff, but they do not test concurrency and<br>
high connections numbers ..<br>
<br>
Cheers,<br>
Tobias<br>
<br></blockquote></div><br>This is awesome, BUT...<br><br>...would probably have to be distributed outside of Twisted proper (at least for the moment), as Twisted supports versions of Python &lt; 2.6, where select.kqueue would not exist.<br>
<br>(Maybe this is your plan, but I&#39;m just pointing it out.)<br><br>Kevin Horn<br>