HAProxy is incompatible with WebSocket protocol revision 76?

2010-06-30 Thread Juhani Åhman
Hi everyone I've recently tried to use HAProxy as a reverse proxy to a WebSocket server like Moskovitz in this thread (http://www.mail-archive.com/haproxy@formilux.org/msg02754.html), but I've run into problems. I can only get websockets proxied in http mode when I'm using a browser which speaks

Re: HAProxy is incompatible with WebSocket protocol revision 76?

2010-06-30 Thread Aleksandar Lazic
Dear Juhani, On Mit 30.06.2010 15:09, Juhani Åhman wrote: Hi everyone I've recently tried to use HAProxy as a reverse proxy to a WebSocket server like Moskovitz in this thread (http://www.mail-archive.com/haproxy@formilux.org/msg02754.html), but I've run into problems. I can only get

Re: HAProxy is incompatible with WebSocket protocol revision 76?

2010-06-30 Thread Juhani Åhman
On Wed, 2010-06-30 at 14:46 +0200, Aleksandar Lazic wrote: Dear Juhani, On Mit 30.06.2010 15:09, Juhani Åhman wrote: Hi everyone I've recently tried to use HAProxy as a reverse proxy to a WebSocket server like Moskovitz in this thread

Re: HAProxy is incompatible with WebSocket protocol revision 76?

2010-06-30 Thread Aleksandar Lazic
Dear Juhani, On Mit 30.06.2010 16:59, Juhani Åhman wrote: On Wed, 2010-06-30 at 14:46 +0200, Aleksandar Lazic wrote: Dear Juhani, On Mit 30.06.2010 15:09, Juhani Åhman wrote: Hi everyone I've recently tried to use HAProxy as a reverse proxy to a WebSocket server like Moskovitz in this thread

Re: HAProxy is incompatible with WebSocket protocol revision 76?

2010-06-30 Thread Juhani Åhman
On Wed, 2010-06-30 at 16:18 +0200, Aleksandar Lazic wrote: I think you will need the client-keepalive option. I'am not sure if this is the only option to activate this, I hope anybody else on this list can say more about this. Hth Aleks I tested enabling option httpclose or option

Re: HAProxy is incompatible with WebSocket protocol revision 76?

2010-06-30 Thread Aleksandar Lazic
On Mit 30.06.2010 17:38, Juhani Åhman wrote: On Wed, 2010-06-30 at 16:18 +0200, Aleksandar Lazic wrote: I think you will need the client-keepalive option. I'am not sure if this is the only option to activate this, I hope anybody else on this list can say more about this. Hth Aleks I

Re: Interest in patch for web interface to enable/disable servers

2010-06-30 Thread Jason J. W. Williams
My two cents for what it's worth... This would be a terrific feature and the one I miss the most from commercial load balancers. Makes taking real servers in and out of battery to test an issue simple. My recommendation would be to make the stats interface read-only by default, and allow

haproxy bug or wrong kernel settings?

2010-06-30 Thread Craig Craig
Hi list, I'm having a strange problem with haproxy 1.3.24, when the server gets more connections. Load is still ok by then (about 0.5), througput is about 50-100MBit. Right now, everything is fine, I'm seeing: Server connection states (it also runs a squid, which is not used for this

Re: haproxy bug or wrong kernel settings?

2010-06-30 Thread Willy Tarreau
Hi Craig, On Wed, Jun 30, 2010 at 07:16:32PM +0200, Craig Craig wrote: It seems that somewhere over 2000 and between 4500 established connections, the problems start; I've not been able to determine the exact number, as I've changed the NAT to the server directly - it could handle the ~6600

Re: haproxy bug or wrong kernel settings?

2010-06-30 Thread Craig
Hi, at 30.06.2010 23:08, Willy Tarreau wrote I'm seeing that you have nf_conntrack loaded on the server, are you absolutely sure that the session table never fills up ? You can check that with dmesg. I'm asking because this is an extremely common issue. Just in doubt, you should check if you

Re: precedence of if conditions

2010-06-30 Thread Bryan Talbot
See section 7.7: AND is implicit. 7.7. Using ACLs to form conditions -- Some actions are only performed upon a valid condition. A condition is a combination of ACLs with operators. 3 operators are supported : - AND (implicit) - OR (explicit with the or

Re: precedence of if conditions

2010-06-30 Thread Willy Tarreau
On Wed, Jun 30, 2010 at 08:53:19PM -0700, Bryan Talbot wrote: See section 7.7: AND is implicit. 7.7. Using ACLs to form conditions -- Some actions are only performed upon a valid condition. A condition is a combination of ACLs with operators. 3 operators

Re: acl values/evaluation timing during processing

2010-06-30 Thread Willy Tarreau
On Wed, Jun 30, 2010 at 04:01:36PM -0700, Hank A. Paulson wrote: I have an old URL that needs to be redir'd to a new url in several situations but I can't see how to avoid looping. acl hdr_sub(host) host1 acl hdr_sub(host) host2 acl oldurl path_beg /oldblah acl newurl path_beg /newu

Re: performance with and without haproxy

2010-06-30 Thread Willy Tarreau
On Tue, Jun 29, 2010 at 10:01:39AM +0200, eni-urgence wrote: After some test, it appears that is a hardware/design problem. I made a new virtual host (https) on the proxy machine, call it directly not through haproxy and the transfer time are similar. Now i had to found why . Is think the

Re: Interest in patch for web interface to enable/disable servers

2010-06-30 Thread Willy Tarreau
On Wed, Jun 30, 2010 at 10:50:28AM -0600, Jason J. W. Williams wrote: My two cents for what it's worth... This would be a terrific feature and the one I miss the most from commercial load balancers. Makes taking real servers in and out of battery to test an issue simple. My recommendation