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] 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

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)
t: Re: [Libevent-users] libevent http and lost requests 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. May

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

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

2011-08-11 Thread Mark Ellzey
On Thu, Aug 11, 2011 at 09:19:41PM +0300, about bus wrote: > Hello! > > I have a simple my own libevent-based http server written on C, use evhttp.h > functions. > I use it like backend with nginx server (about ~2K requests per second). > Sometimes in nginx error log appears error: "(60: Operation

[Libevent-users] libevent http and lost requests

2011-08-11 Thread about bus
Hello! I have a simple my own libevent-based http server written on C, use evhttp.h functions. I use it like backend with nginx server (about ~2K requests per second). Sometimes in nginx error log appears error: "(60: Operation timed out) while reading response header from upstream" Timeout value