|
Boost Users : |
Subject: Re: [Boost-users] *NIX: Boost ASIO and file descriptor limits
From: Boris (boriss_at_[hidden])
Date: 2008-10-04 11:16:04
On Sat, 04 Oct 2008 16:56:38 +0200, Etienne Philip Pretorius
<icewolfhunter_at_[hidden]> wrote:
> Hello list,
>
> 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.
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