I get this when the session disconnects:

Dec 18 07:16:40 localhost haproxy[28357]:
10.0.77.83:58914[18/Dec/2012:07:10:12.899] http-in~ app_back/s1
72/0/69/70/387465 101
60777735 - - ---- 1/1/0/0/0 0/0 "GET /
socket.io/1/websocket/qXV9FijWB_XXVl5tci5m HTTP/1.1"

After the refresh, my websocket socket id will be different than above
(qXV9FijWB_XXVl5tci5m).

How can I enable richer logging here?



On Tue, Dec 18, 2012 at 10:34 AM, Baptiste <[email protected]> wrote:

> Hi,
>
> What does the logs say???
> It will tell you who closed the connection and after how long.
> Maybe useful clues here.
>
> cheers
>
>
>
> On Tue, Dec 18, 2012 at 4:11 PM, Benjamin Polidore <[email protected]>
> wrote:
> > My app works well through HA Proxy, but occasionally the websocket
> > connection is reset and the entire page refreshes.  I'm not sure exactly
> why
> > this is the case, but it only seems to happen via HA Proxy (ie, not
> direct).
> > I'm using 1.5 dev 15 and here is my config:
> >
> > defaults http
> >   log global
> >   option forwardfor
> >   option httplog
> >   option dontlognull
> >   option redispatch
> >   option http-server-close
> >   timeout tunnel 9h
> >   timeout connect 5s
> >   timeout client 30s
> >   timeout server 30s
> >
> > frontend http-in
> >   mode http
> >   bind *:80
> >   bind *:443 ssl crt ./app.pem
> >
> >   acl clear dst_port 80
> >   acl secure dst_port 443
> >
> >   acl app hdr_beg(host) -i app.mydomain.com
> >
> >   redirect scheme https if clear
> >   use_backend app_back if app secure
> >
> > backend app_back
> >   mode http
> >   appsession connect.sid len 128 timeout 24h request-learn
> >   balance roundrobin
> >   server s1 10.0.77.13:3000
> >   server s2 10.0.77.13:3001
> >
>

Reply via email to