4 Oct
2008
4 Oct
'08
3:38 p.m.
On Sat, 04 Oct 2008 17:16:04 +0200, Boris
[...]
I have a question regarding the system limit on a *NIX system for the maximum open file descriptors that a process may have open.
If you were using the boost asio library to design a server application how would you go about and extend the server to handle more than the 1024 file descriptor limit.
I think the 1024 file descriptor limit is only a problem if you use select(). Depending on your operating system it should be possible to raise the per-process limit. If you use then an I/O service based on poll() or epoll() I would assume this limit goes away.
Etienne, this link might also help you: http://www.kegel.com/c10k.html#limits.filehandles Boris