Re: Can client side proxies cause any other issues with cookie insertion?

From: Willy Tarreau <w#1wt.eu>
Date: Mon, 26 Nov 2007 22:22:52 +0100


Hi Malcolm,

On Mon, Nov 26, 2007 at 08:10:48PM +0000, Lists Account wrote:
> Can client side proxies cause any other issues with cookie insertion?
>
> I have a site where they are doing a simple:
>
> listen application 0.0.0.0:80
> mode http
> cookie SERVERID insert nocache indirect
> balance roundrobin
> server srv1 192.168.1.1:80 cookie server01 check
> server srv2 192.168.1.2:80 cookie server02 check
>
> Style of cookie insert.
> But some clients comming through proxies seem to be loosing their cookies?
>
> Do I need to look at httpclose (I thought that was only for PREFIX?)
> Anything else I'm missing?

There is a situation where it's possible that you have no other chose but setting httpclose : if your clients browse through a shared proxy which itself maintains a pool of connections to outside servers (including yours), you will have several clients forced to the same server at one moment, because the first one will dictate the server and the other ones will follow on the same connection.

I see no other situation in which this issue may happen at the load balancer's level. Another very common case is if you have reverse proxies (cache) before your load balancer. Sometimes the application permits too much caching and some objects are stored in the cache with a cookie, which is returned to all subsequent users fetching the same object. I've often encountered this on Apache as a reverse-proxy, but there is no reason that this problem limits to this product only.

> Using 1.2 stable
>
> Thanks very much in advance.
> Regards,
> Malcolm.

regards,
Willy Received on 2007/11/26 22:22

This archive was generated by hypermail 2.2.0 : 2007/11/26 23:00 CET