Re: HAProxy is incompatible with WebSocket protocol revision 76?

From: Aleksandar Lazic <al-haproxy#none.at>
Date: Wed, 30 Jun 2010 16:18:26 +0200


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
>> >(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 revision pre-76
>> >draft websockets (eg. Chromium 5.0.375.70). When using a rev. 76
>> >browser (eg. Chromium 6.0.414.0 or later) the websocket connections
>> >seem to always fail.

[snipp]
>> Please can you try to run haproxy with -p flag similar as in
>>
>> http://www.mail-archive.com/haproxy@formilux.org/msg02793.html
>>
>> Please can you also send us the output of
>>
>> haproxy -vv
>>
>> BR
>>
>> Aleks
>>
>
>haproxy -vv output
>
>fuzzybyte#STACKER:~$ haproxy -vv
>HA-Proxy version 1.4.8 2010/06/16
>Copyright 2000-2010 Willy Tarreau <w#1wt.eu>

[snipp]

>my config
>
>global

[snipp]
>defaults
> mode http
> log global
> option httplog
> option dontlognull
> retries 3
> option redispatch
> #option httpclose

option http-server-close

> option forwardfor
> maxconn 10000

[snipp]

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 Received on 2010/06/30 16:18

This archive was generated by hypermail 2.2.0 : 2010/06/30 16:30 CEST