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> <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> a. monkeypatch select with epoll:<br> import epoll; sys.modules['select'] = epoll<br><br> b. change the call to asyncore.poll to asyncore.poll2 (this will call 'poll' instead of 'select'; epoll uses this interface)<br>
________________________________________________________________________________________________<br><br>Voila; bon-appetit.<br clear="all"><br>-- <br>Phoenix Sol<br>541-646-8612<br>130 'A' Street,<br>Suite 6<br>Ashland, Oregon<br>
97520