Boost logo

Boost Users :

Subject: Re: [Boost-users] *NIX: Boost ASIO and file descriptor limits
From: Boris (boriss_at_[hidden])
Date: 2008-10-04 11:38:27


On Sat, 04 Oct 2008 17:16:04 +0200, Boris <boriss_at_[hidden]> wrote:

> [...]
>> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net