[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Re: libevent http and lost requests



On Mon, Aug 15, 2011 at 01:53:18PM +0300, about bus wrote:
> Http server use only libevent http functions for network communication.
> 
> evthread_use_pthreads;

So the webserver is threaded?

> event_base_new
> evhttp_new
> evhttp_set_gencb
> evhttp_bind_socket
> while (1) {
>    event_base_loop
>    evhttp_send_reply
> }

What is the point of doing an event_base_loop in a while loop?
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.