3 ms·
What version of twisted and os you were using? I'm asking because all latest Twisted releases are using epoll by default.
by alexk 13y ago
What version of twisted and os you were using? I'm asking because all latest Twisted releases are using epoll by default.
- kingkilr 13y agoIt's worth noting that PyPy also supports epoll (and kqueue), and has for a few versions.
- kbuck 13y agoI remember looking at that, but Twisted's epoll reactor was a C extension at the time. It looks like Twisted 12.1.0 switched to using the epoll provided by the Python base library, but that was released about a year after I was originally installing this daemon (and I was installing everything from apt, so add another year to the age of the packages I got).
- willvarfar 13y agoA couple of years back when I was deploying twisted using Debian packages, it was not using epoll by default.
- kbuck 13y agoYep, this was on a Debian 6.0.2 install, with packages from apt.
- kbuck 13y agoThis was with Twisted 10.1.0 and Python 2.6.6. I remember being in extreme disbelief when I found that it was using select/poll instead of epoll (who does that, especially when they already have epoll support?). I ended up writing this: for reactor in ["epoll", "kq"]: try: rn = reactor + "reactor" getattr(__import__("twisted.internet", fromlist=[rn], rn).install() print "Auto-selecting reactor: " + reactor break except ImportError: pass