Hi All,

Just to share what I did when testing with another project of mine ;-)

I am working on a socket proxy/filter on Solaris and here are what my issues
and how they are addressed:

1. can't build libevent on Win32 box -> switch to Ubuntu to develop

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

3. need synchronize multiple processes to accept -> create semaphore in main
process and accept only after grabbing the semaphore

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

5. sometime crashing on Solaris 10 (in evport.c) -> static link to libevent
1.3e (instead of 1.2a so as system installed)

Arthur

----- Original Message ----- 
From: "Niels Provos" <[EMAIL PROTECTED]>
To: "Marco Bambini" <[EMAIL PROTECTED]>
Cc: <libevent-users@monkey.org>
Sent: Monday, November 05, 2007 10:37 AM
Subject: Re: [Libevent-users] Two questions...


> On 11/5/07, Marco Bambini <[EMAIL PROTECTED]> wrote:
> > - I am interested in using it in a high load server I am writing,
> > ideally it should handle some thousands of TCP/IP concurrent
> > connections ... actual implementation is one thread per connection
> > architecture with a select statement for each thread ... what is the
> > best way to develop and high load server with libevent? (just one big
> > event list and one thread?)
>
> That really depends on your model and what kind of architecture your
> deploy your system on.  Libevent allows you to run one event loop per
> thread.
>
> Niels.
> _______________________________________________
> Libevent-users mailing list
> Libevent-users@monkey.org
> http://monkey.org/mailman/listinfo/libevent-users

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to