RE: tcp resets on reload haproxy

2012-04-04 Thread Mostowiec Dominik
Hi, Krisztian Ivancso is working on FD passing How long will it take? -- Regards Dominik -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Wednesday, March 21, 2012 7:46 AM To: Mostowiec Dominik Cc: haproxy@formilux.org Subject: Re: tcp resets on reload haproxy Hi, On

Re: tcp resets on reload haproxy

2012-04-04 Thread Willy Tarreau
On Wed, Apr 04, 2012 at 09:08:25AM +0200, Mostowiec Dominik wrote: Hi, Krisztian Ivancso is working on FD passing How long will it take? No idea, it's experimental right now so it may take some time before it's finished and mergeable. We might also encounter complex issues inherent to the

[PATCH 1/4] MINOR: stats admin: allow unordered parameters in POST requests

2012-04-04 Thread Cyril Bonté
Previously, the stats admin page required POST parameters to be provided exactly in the same order as the HTML form. This patch allows to handle those parameters in any orders. Also, note that haproxy won't alter server states anymore if backend or server names are ambiguous (duplicated names in

[PATCH 2/4] CLEANUP: fix typo in findserver() log message

2012-04-04 Thread Cyril Bonté
There was a typo in the findserver() log message : found was written fould. --- src/proxy.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/proxy.c b/src/proxy.c index 123fd61..84d430a 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -366,7 +366,7 @@ struct server

[PATCH 3/4] MINOR: stats admin: use the backend id instead of its name in the form

2012-04-04 Thread Cyril Bonté
Proxy ids are unique whereas names can be used several times in the configuration. In order to prevent the ambiguity, the HTML form now provides the backend id instead of its name (the name can still be provided in the POST data). --- src/dumpstats.c |4 ++-- 1 files changed, 2 insertions(+),

[PATCH 4/4] MINOR: stats admin: reduce memcmp()/strcmp() calls on status codes

2012-04-04 Thread Cyril Bonté
memcmp()/strcmp() calls were needed in different parts of code to determine the status code. Each new status code introduces new calls, which can become inefficient and source of bugs. This patch reorganizes the code to rely on a numeric status code internally and to be hopefully more generic. ---

all SET commands to haproxy socket fail with : Permission denied

2012-04-04 Thread Piavlo
Hi, Tried with several 1.4.* versions including latest, the get commands work and for set commands there is - Permission denied # echo get weight common_slave/slave1a | socat stdio /var/lib/haproxy/stats 25 (initial 25) # echo set weight common_slave/slave1a 50% | socat stdio

Re: all SET commands to haproxy socket fail with : Permission denied

2012-04-04 Thread Damien Churchill
Hi, On Apr 4, 2012 3:19 PM, Piavlo lolitus...@gmail.com wrote: Hi, Tried with several 1.4.* versions including latest, the get commands work and for set commands there is - Permission denied # echo get weight common_slave/slave1a | socat stdio /var/lib/haproxy/stats 25 (initial 25) #

lots and lots of request erros - cR 408

2012-04-04 Thread Alon M
Hello , we started to use haproxy on our production environment. the request are coming to a layer 4 load balancing - ldirector which forwards them to a haproxy which forwards it to a tomcat on the same server . our connection handling inside tomcat is fast - ~10 mili seconds, and we want to

Re: lots and lots of request erros - cR 408

2012-04-04 Thread Alon M
sorry forgot to add our config file : global log 127.0.0.1 local0 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4000 stats socket/tmp/haproxy level admin userhaproxy group haproxy daemon defaults mode

Re: lots and lots of request erros - cR 408

2012-04-04 Thread Baptiste Assmann
Well your client did not sent the request in less than 10s so haproxy shut the connection Cf option http-request 1 cheers Le 4 avr. 2012 à 18:24, Alon M a...@datonics.com a écrit : sorry forgot to add our config file : global log 127.0.0.1 local0 chroot

Header manipulation generates a response?

2012-04-04 Thread Pedro Mata-Mouros
Hi everyone, Willy, Either I'm really unaware if HAProxy can do this or not, or I completely forgot it. Is it possible to check for a specific request and promptly return a user defined response, without the need to go to a backend? I basically need to return an empty HTTP 200 with

Re: Header manipulation generates a response?

2012-04-04 Thread Baptiste
Hey, This is doable using content switching to route your request to a backend where where no servers are up. In this backend, just use the statement errorfile to tell haproxy to load content of the response from a local file You're done. cheers On Wed, Apr 4, 2012 at 8:37 PM, Pedro

[no subject]

2012-04-04 Thread Dorin Cornea
a href=http://dasege.go13579.com/data/fjgvkd.html; http://dasege.go13579.com/data/fjgvkd.html/a

Re: Header manipulation generates a response?

2012-04-04 Thread Pedro Mata-Mouros
Hi, I really should've thought of that for myself, sorry about that... :-) Thanks so much, will try it tomorrow! Pedro. On 04/04/2012, at 21:01, Baptiste wrote: Hey, This is doable using content switching to route your request to a backend where where no servers are up. In this

Re: lots and lots of request erros - cR 408

2012-04-04 Thread fred hu
brower will open upto 6 connection to your server, while not all of them will be used. that is one source of 408 another source is the request of your client is larger than 1460 due to cookie or some else. so the request is splited into two packets.and the latter lost due to network. however

Ergo baby carrier discount of baby carrier

2012-04-04 Thread haproxy
As we all konw,ergo amoebic baby carrier is absolute able for connected walks and you can get your baby in and out of it easily.In 2010, ERGO has produced three ancestors of the Appropriately amoebic baby carrier,The Appropriately amoebic baby carrier is created by the across of the fabric;The

Re: Weird log output

2012-04-04 Thread Baptiste
Hi, You're logging using the tcp log format (option tcplog from your defaults). You may turn on option httplog in your http listen section to get more information about this request. It may be some monitoring systems. Regards On Thu, Apr 5, 2012 at 4:07 AM, Guy Knights

Re: lots and lots of request erros - cR 408

2012-04-04 Thread Baptiste
hey, When a packet is lost, there is a retransmit 3s later (TCP protocol). Which is under the 10s of the timeout currently configured. So this can't be the reason of too many 408. Either you're under attack (somebody trying to take all the resources of your website using slowloris-like scripts).

Re: Header manipulation generates a response?

2012-04-04 Thread Baptiste
Hey, No need to apologies, sometimes it's faster to ask than looking for the solution for hours and building an ugly workaround. If you need help for the setting up the solution, please let us know. The content of the file may be: HTTP/1.0 200 OK Cache-Control: no-cache Connection: close