Hello Stacklessistas,<br><br>In all my flailing to get stacklesssocket to use libevent, I had failed to realize that there is a very easy way to get stacklesssocket to use epoll on linux:<br>&nbsp;&nbsp;&nbsp; <a href="http://pypi.python.org/pypi/python-epoll/1.0">http://pypi.python.org/pypi/python-epoll/1.0</a><br>
<br>I know lots of you are using Windows, and / or Twisted, but on the odd chance there is a fellow Linux user out there who wants greater speed and efficiency with stacklesssocket, here you go:<br>________________________________________________________________________________________________<br>
<br>1. easy_install python-epoll<br><br>2. modify stacklesssocket:<br>&nbsp;&nbsp;&nbsp; a. monkeypatch select with epoll:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; import epoll; sys.modules[&#39;select&#39;] = epoll<br><br>&nbsp;&nbsp;&nbsp; b. change the call to asyncore.poll to asyncore.poll2 (this will call &#39;poll&#39; instead of &#39;select&#39;; epoll uses this interface)<br>
________________________________________________________________________________________________<br><br>Voila; bon-appetit.<br clear="all"><br>-- <br>Phoenix Sol<br>541-646-8612<br>130 &#39;A&#39; Street,<br>Suite 6<br>Ashland, Oregon<br>
97520