shadow/shadow — Issue #32: Support epoll instead of libevent
Author: robgjansen
Created: 2011-10-27 11:52:51+00:00
State: open
Labels: feature

epoll is a system interface for polling buffers. The interface is much smaller and is built into the kernel. We should implement the interface for Shadow, intercept and redirect the epoll functions to Shadow's version, and remove support for the rather large libevent.

Of course, libevent uses epoll as a backend, so the Tor plug-in *should* still function. In changing to epoll, we must not break libevent functionality. In other words, the Tor plug-in should be able to link to libevent, force it to use the epoll backend, and still get notifications properly.

See:
http://www.wangafu.net/~nickm/libevent-book/Ref2_eventbase.html