[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 12:30 PM, Leonid Evdokimov <leon@xxxxxxxxxxxx> wrote:
On Fri, Aug 12, 2011 at 22:48, about bus <aboutbus@xxxxxxxxx> wrote:
> So, if everything ok with network, where libevent or maybe OS (FreeBSD 7.2)
> holds request for 30 / 75 seconds?

Do you use ACCEPT_FILTER in your http server? I think it can create
such delay in case of some nasty bug.


No, I don't use such system functions.
Http server use only libevent http functions for network communication.

evthread_use_pthreads;
event_base_new
evhttp_new
evhttp_set_gencb
evhttp_bind_socket
while (1) {
   event_base_loop
   evhttp_send_reply
}
evhttp_free
event_base_free