Re: Why so many 400 BADREQ in haproxy log?

2014-06-21 Thread Jie Jin
Thank you very very much for the keyword "pre-connect" in your email. I got the reason why so many 400 requests. Most of the requests are sent from flash player, this is so weird they send pre-connect request. I add option dontlognull in haproxy.cfg. The haproxy.log did not log any these empty co

Re: Why so many 400 BADREQ in haproxy log?

2014-06-20 Thread Willy Tarreau
On Fri, Jun 20, 2014 at 03:30:29PM +0800, Jie Jin wrote: > In order to get output from stats socket, What parameter do I need to put > in haproxy.cfg ? > > I tried show errors, but nothing returned. > > [www@front tmp]$ echo "show errors" | sudo socat stdio /tmp/haproxysock > Total events capture

Re: Why so many 400 BADREQ in haproxy log?

2014-06-20 Thread Jie Jin
In order to get output from stats socket, What parameter do I need to put in haproxy.cfg ? I tried show errors, but nothing returned. [www@front tmp]$ echo "show errors" | sudo socat stdio /tmp/haproxysock Total events captured on [20/Jun/2014:15:24:13.979] : 0 My haproxy.cfg [www@front log]$ c

Re: Why so many 400 BADREQ in haproxy log?

2014-06-19 Thread Willy Tarreau
Hi Jie Jin, On Fri, Jun 20, 2014 at 11:55:54AM +0800, Jie Jin wrote: > Hi, all > > Finally, I got some log and screenshot from the haproxy. > > We use haproxy 1.4.25. But recently we met a problem: so many 4xx requests, > nearly 6% - 8%. > > I want to know why so many 400 requests, and fix it.