I was under the impression that boost::asio would use an epoll setup by default instead of a select implementation, but after running some tests it looks like my setup is using select.
OS: RHEL 4
Kernel:2.6
GCC:3.4.6
I wrote a little test program to verify which reactor header was being used, and it looks like its using the select reactor rather than the epoll reactor.
#include <boost/asio.hpp> #include <string> #include <iostream> std::string output; #if defined(BOOST_ASIO_EPOLL_REACTOR_HPP) int main(void) { std::cout << "you have epoll enabled." << std::endl; } #elif defined(BOOST_ASIO_DETAIL_SELECT_REACTOR_HPP) int main(void) { std::cout << "you have select enabled." << std::endl; } #else int main(void) { std::cout << "this shit is confusing." << std::endl; } #endif
What could I be doing wrong?