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

2011-08-12 Thread about bus
On Fri, Aug 12, 2011 at 11:36 PM, Mark Ellzey wrote: > Hrmm - looks like DNS > > evhttp_get_request_connection( >struct evhttp* http, >evutil_socket_t fd, struct sockaddr *sa, ev_socklen_t salen) > { >struct evhttp_connection *evcon; >char *hostname = NULL, *portn

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

2011-08-12 Thread about bus
On Fri, Aug 12, 2011 at 11:28 PM, Mark Ellzey wrote: > I have a hunch that nginx is sending some type of query that libevent > can't parse. Can you paste the entire packet for the get request from > nginx to your server? > > tcpdump -n -s0 -X, and just paste the full packet for the GET request. >

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

2011-08-12 Thread Mark Ellzey
On Fri, Aug 12, 2011 at 09:48:20PM +0300, about bus wrote: > I've added some debug output in libevent functions, added "fd" (file > descriptor) in every output message. > messages from libevent - [warn] > messages from my http server - v[3] > Also I've changed timeout in nginx config from 75 to 30,

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

2011-08-12 Thread Mark Ellzey
On Fri, Aug 12, 2011 at 06:36:18PM +0300, about bus wrote: > On Fri, Aug 12, 2011 at 4:57 PM, Leonid Evdokimov wrote: > > > What libevent version do you use? > > Can you reproduce the issue with ab (apache benchmark) instead of nginx? > > > > -- > > > > Libevent from sources: libevent-2.0.12-sta

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

2011-08-12 Thread about bus
I've added some debug output in libevent functions, added "fd" (file descriptor) in every output message. messages from libevent - [warn] messages from my http server - v[3] Also I've changed timeout in nginx config from 75 to 30, it does not increase or decrease timeouts count. I've got about 0.1%

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

2011-08-12 Thread about bus
On Fri, Aug 12, 2011 at 4:57 PM, Leonid Evdokimov wrote: > What libevent version do you use? > Can you reproduce the issue with ab (apache benchmark) instead of nginx? > > -- > Libevent from sources: libevent-2.0.12-stable I did not tried ab, I've tried to use http_load tool instead of real use

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

2011-08-12 Thread Leonid Evdokimov
On Fri, Aug 12, 2011 at 13:43, about bus wrote: > On Fri, Aug 12, 2011 at 8:13 AM, Mark Ellzey wrote: > I can't post source code. Maybe later I will make simple version of server, > which can reproduce timeout errors. What libevent version do you use? Can you reproduce the issue with ab (apache

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

2011-08-12 Thread about bus
On Fri, Aug 12, 2011 at 1:14 PM, Jain, Deepak (GE Healthcare) < deepakj...@ge.com> wrote: > Try to use valgrind’s callgrind tool for investigating where the time has > been use. > > > The 75 seconds were lost between network (tcpdump shows what packet with GET query was successfully sent from ngin

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

2011-08-12 Thread Jain, Deepak (GE Healthcare)
Try to use valgrind's callgrind tool for investigating where the time has been use. Regards Deepak From: owner-libevent-us...@freehaven.net [mailto:owner-libevent-us...@freehaven.net] On Behalf Of about bus Sent: Friday, August 12, 2011 3:13 PM To: libevent-us...@freehaven.net Subject: Re:

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

2011-08-12 Thread about bus
On Fri, Aug 12, 2011 at 8:13 AM, Mark Ellzey wrote: > > Can you post the source? If not you can try ltrace/strace'ing your > server or enable event debugging by recompiling libevent with > -DUSE_DEBUG > I can't post source code. Maybe later I will make simple version of server, which can reprodu