
上QQ阅读APP看书,第一时间看更新
Multiplexing a web server using select.epoll
Python's select module has a few platform-specific, networking event management functions. On a Linux machine, epoll is available. This will utilize the operating system kernel that will poll network events and let our script know whenever something happens. This sounds more efficient than the previously mentioned select.select approach.