[Libevent-users] Two questions...

Marc Lehmann libev at schmorp.de
Mon Nov 5 16:09:14 EST 2007


On Mon, Nov 05, 2007 at 02:52:08PM -0500, arthur <mail2arthur at gmail.com> wrote:
> 2. one process (I didn't use thread) can only have a limited number of
> fd's -> fork multiple processes to more accept client connection

I am not aware of any such limitation. Both per-process (ulimit) and
per-system settings (file-max) are easily configurable.

> 4. sometime crashing after fork -> move event_init after fork (in other
> word, each process needs to event_init itself)

Yes :) Easy enough to do if you don't need event management in the parent
process.

Greetings,

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at goof.com
      -=====/_/_//_/\_,_/ /_/\_\


More information about the Libevent-users mailing list