Re: Randomly wrong backend on http request

2012-05-07 Thread Willy Tarreau
Hi Baptiste, On Thu, May 03, 2012 at 09:50:39PM +0200, Baptiste wrote: When using HAProxy with the option http-server-close or forceclose, haproxy will close the TCP conection on either the server or both the client and the server, after each request. Which is not compatible with websocket.

Re: Randomly wrong backend on http request

2012-05-07 Thread Baptiste
On Mon, May 7, 2012 at 10:42 PM, Willy Tarreau w...@1wt.eu wrote: Hi Baptiste, On Thu, May 03, 2012 at 09:50:39PM +0200, Baptiste wrote: When using HAProxy with the option http-server-close or forceclose, haproxy will close the TCP conection on either the server or both the client and the

Re: Randomly wrong backend on http request

2012-05-06 Thread Baptiste
On Sat, May 5, 2012 at 10:20 AM, Finn Arne Gangstad fin...@gmail.comwrote: You may be hit by the fact that hdr_dom(host) is sort of broken before 1.4.18. Some clients include the port number in the Host header, and hdr_dom() would not match those. If this is your problem, either upgrade

Re: Randomly wrong backend on http request

2012-05-05 Thread Finn Arne Gangstad
You may be hit by the fact that hdr_dom(host) is sort of broken before 1.4.18. Some clients include the port number in the Host header, and hdr_dom() would not match those. If this is your problem, either upgrade haproxy to 1.4.18+, 1.5-dev7+, or you can use one of the following workarounds:

Re: Randomly wrong backend on http request

2012-05-03 Thread Francois-Guillaume Ribreau
In fact I started with an new fresh configuration without all those options and now it works well (I still have http-server-close forceclose). But I had to remove the default_backend nginx directive because it was the root issue. Sometimes HAProxy was going through the acls (below) without

Re: Randomly wrong backend on http request

2012-05-03 Thread Baptiste
On Thu, May 3, 2012 at 6:48 PM, Francois-Guillaume Ribreau francoisguillaume-ribr...@fgribreau.com wrote: In fact I started with an new fresh configuration without all those options and now it works well (I still have http-server-close forceclose). But I had to remove the default_backend

Randomly wrong backend on http request

2012-04-30 Thread Francois-Guillaume Ribreau
On the main page of my website multiple http requests are made on different domains (brin.gr, static.brin.gr and gateway.brin.gr). Sometimes everything's fine, sometimes the http request to gateway.brin.grreturns 502. I've started HAProxy in debug mode and found out that the 502 error occur when

Re: Randomly wrong backend on http request

2012-04-30 Thread Francois-Guillaume Ribreau
Thanks for your answer However, I removed the mode tcp line from the frontend block and I still have the same issue. Do you have any other ideas ? Thanks On Mon, Apr 30, 2012 at 11:20 PM, Baptiste bed...@gmail.com wrote: On Mon, Apr 30, 2012 at 3:17 PM, Francois-Guillaume Ribreau