cloudtrends / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

add epoll for muti I/O #383

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
add epoll support for mongoose, it's can used by define USE_EPOLL switch the 
select to epoll.

Original issue reported on code.google.com by yef....@gmail.com on 10 Aug 2012 at 8:47

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch!
I have integrated main.c enhancement, but not going to submit EPOLL code.
The reason is that the complexity/benefit ratio is too high.
EPOLL is good when many sockets are polled. In mongoose's case, the number of 
sockets to poll is the number of listening sockets, which is most of the time 
one socket. In this case, select and epoll make no big difference.

Original comment by valenok on 22 Sep 2012 at 10:32